From owner-freebsd-current Mon Nov 8 14:24:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 1A04D14FBA for ; Mon, 8 Nov 1999 14:23:56 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id PAA10608; Mon, 8 Nov 1999 15:23:47 -0700 (MST) (envelope-from ken) Message-Id: <199911082223.PAA10608@panzer.kdm.org> Subject: Re: TCP sockets stuck in the CLOSING state In-Reply-To: <19991107080903.23572@right.PCS> from Jonathan Lemon at "Nov 7, 1999 08:09:03 am" To: jlemon@americantv.com (Jonathan Lemon) Date: Mon, 8 Nov 1999 15:23:47 -0700 (MST) Cc: des@flood.ping.uio.no (Dag-Erling Smorgrav), current@freebsd.org From: "Kenneth D. Merry" X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Lemon wrote... > On Nov 11, 1999 at 01:41:48PM +0100, Dag-Erling Smorgrav wrote: > > Note that the state transition diagram in RFC793 does not specify a > > timeout for the CLOSING -> TIME_WAIT transition, so any faithful > > implementation of RFC793 has this bug (but why doesn't this happen on > > -STABLE, or on pre-August -CURRENT?) > > I'm not sure abuot that one. But I've just committed a fix to tcp_fsm.h, > which will cause it to re-transmit a FIN in CLOSING state. The FIN was > originally taken out by Garrett in rev 1.5, and restored by dg in rev 1.6. > However, it was re-removed in 1.10 when Garrett made a large commit, > presumably he hadn't taken it out of his local tree. > > It fixes the problem here (at least, I can't replicate the problem any > more). I'm not sure if I'm fixing the symptoms rather than the actual > problem then, though. NetBSD has the same fix in their tree as well. I've had the fix in use for about a day, and it seems to fix the problem here. I don't have any sockets stuck in the CLOSING state, and from previous experience, I would have at least one or two by now. > I'm pretty sure that I've seen this problem on -current going back as > early as March as well. I don't remember it happening before, but of course that doesn't mean it didn't happen. There's a guy who reported the same problem with -stable on the -isp list. I sent him the patch, and told him to report back to you and the -stable list on whether or not it works. He said that he did not have the problem with 2.2.x machines. If it's happening with -stable, that means the problem has been in the tree for a while (probably since rev 1.10, which was in 1997) and may have just been exacerbated somehow by the timer changes in August. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message