Date: Sat, 13 Feb 1999 02:30:02 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/10028: TCP problem binding port - address already in use Message-ID: <199902131030.CAA16769@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: Matthew Dillon <dillon@apollo.backplane.com> To: David Hedley <david@inty.co.uk> 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 02:23:01 -0800 (PST) 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, ... ); -Matt Matthew Dillon <dillon@backplane.com> 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?199902131030.CAA16769>