From owner-freebsd-bugs Thu Feb 11 09:50:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19191 for freebsd-bugs-outgoing; Thu, 11 Feb 1999 09:50:08 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19111 for ; Thu, 11 Feb 1999 09:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id JAA44203; Thu, 11 Feb 1999 09:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Thu, 11 Feb 1999 09:50:01 -0800 (PST) Message-Id: <199902111750.JAA44203@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: David Hedley Subject: Re: kern/10028: TCP problem binding port - address already in use Reply-To: David Hedley Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/10028; it has been noted by GNATS. From: David Hedley To: Bill Fenner Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/10028: TCP problem binding port - address already in use Date: Thu, 11 Feb 1999 17:49:30 +0000 (GMT) On Thu, 11 Feb 1999, Bill Fenner wrote: > In message <199902111529.HAA01792@hub.freebsd.org>you write: > >Often when the program exits (usually on a signal), the kernel does not > >'unbind' the port (i.e. netstat -na shows the port still in LISTEN state). > > Have you tried using "lsof" from /usr/ports/sysutils/lsof to figure out > what process is associated with the LISTEN socket? Could this server have > spawned a child which still has the socket open? > On further investigation it looks more like some interaction with 'routed'. It seems that when the problem happens, there are connections to port 8080 held in 'CLOSE_WAIT', and this is causing the kernel to not unbind the port. However, if I kill 'routed' (which is running), then the CLOSE_WAIT connections disappear and the port is no longer bound to anything. This is particularly strange in that the routing table is identical before and after 'routed' is killed. David -- Dr David Hedley,Inty Development,Bristol,UK,0117 9050500,http://www.inty.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message