Date: Wed, 27 Sep 2000 09:58:13 +0200 (CEST) From: Bjorn Tornqvist <bjorn@tornqvist.net> To: freebsd-questions@freebsd.org Subject: bind(2) gives EADDRINUSE during 60 seconds. Why? Message-ID: <Pine.BSF.4.21.0009270957180.64865-100000@tornqvist.net>
index | next in thread | raw e-mail
Howdy!
I hope someone can explain this behaviour to me; The kernel seems to
make a stream port "un-rebindable" within 60 seconds after another
stream-server-process has had the port bound.
The easiest way to illustrate (with port/sysutils/socket):
Terminal one: Terminal two:
socket -s 19191
telnet localhost 19191
^C
Connection closed by foreign host
socket -s 19191
socket: server socket: Address already in use
[wait 60 seconds]
...and socket -s 19191 will succeed again.
What is causing this? This behaviour causes my application to fail a
critical requirement and there must surely be something wrong with my
(aswell as socket(1)'s) interaction with the tcp/ip stack?
TIA,
Bjorn
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009270957180.64865-100000>
