Thread (7 messages) flat view 7 messages, 5 authors, 2004-08-09

Re: SO_REUSEADDR behavior different from BSD

From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2004-08-05 18:34:37

In article [ref] (at Thu, 5 Aug 2004 18:36:17 +0200 (MEST)), "Michael T Kerrisk" [off-list ref] says:
Now, on Linux, at this point, the second instance of the 
server fails with EADDRINUSE, even though it did use 
SO_REUSEADDR.  On FreeBSD 5.1, the second server instance 
does successfully bind.
This behavior is intended.
First socket is REQUIRED to set SO_REUSEADDR
I hate BSD's behavior because it is asynmetry.
(Both sockets are required to agree on "REUSEADDR.")

-- 
Hideaki YOSHIFUJI @ USAGI Project [off-list ref]
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help