Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 1999 08:30:01 -0800 (PST)
From:      David Hedley <david@inty.co.uk>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/10028: TCP problem binding port - address already in use 
Message-ID:  <199902131630.IAA71495@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/10028; it has been noted by GNATS.

From: David Hedley <david@inty.co.uk>
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: Bill Fenner <fenner@parc.xerox.com>, freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/10028: TCP problem binding port - address already in use 
Date: Sat, 13 Feb 1999 16:15:02 +0000 (GMT)

 On Sat, 13 Feb 1999, Matthew Dillon wrote:
 
 >     The error message is correct.  When there are still connections
 >     attached to the bound port and the program listening on the port
 >     goes away, the kernel does not allow reattaching to the port until
 >     a timeout - which I think should be around 2 minutes.
 > 
 >     You can tell the kernel to blow it off and allow reattachments with
 >     the SO_REUSEADDR socket opt.
 > 
 > 	int on = 1;
 > 	setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on));
 > 	listen(lfd, ... );
 > 
 
 The code in the server does this already - it doesn't make any difference
 as I still get 'address already in use....'
 It also doesn't explain that when I kill 'routed' the problem disappears
 immediately.
 
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902131630.IAA71495>