From owner-freebsd-bugs Thu Feb 11 07:30:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02064 for freebsd-bugs-outgoing; Thu, 11 Feb 1999 07:30:06 -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 HAA01996 for ; Thu, 11 Feb 1999 07:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id HAA75550; Thu, 11 Feb 1999 07:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01792; Thu, 11 Feb 1999 07:29:49 -0800 (PST) (envelope-from nobody) Message-Id: <199902111529.HAA01792@hub.freebsd.org> Date: Thu, 11 Feb 1999 07:29:49 -0800 (PST) From: david@inty.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/10028: TCP problem binding port - address already in use Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 10028 >Category: kern >Synopsis: TCP problem binding port - address already in use >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 11 07:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: David Hedley >Release: 2.2.8 & 3.0 >Organization: Intelligent Network Technologies Ltd >Environment: FreeBSD inty.david.inty.net 3.0-RELEASE FreeBSD 3.0-RELEASE #2: Fri Jan 8 19:02:26 GMT 1999 david@brian.visint.co.uk:/usr/src/sys/compile/NEWINTY i386 >Description: I am developing a server program which listens on a port (8080 in this case) 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). I can still make connections to the port, even though there is no process listening on it. Trying to run the server program again reports 'address already in use'. There is no way to clear this problem other than rebooting, which is unacceptable. The problem occurs with kernel versions 2.2.x and 3.0 >How-To-Repeat: >Fix: rebooting. :( >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message