Re: SO_REUSEADDR behavior different from BSD
From: Michael T Kerrisk <hidden>
Date: 2004-08-05 22:25:19
From: Michael T Kerrisk <hidden>
Date: 2004-08-05 22:25:19
In article [ref] (at Thu, 5 Aug 2004 18:36:17 +0200 (MEST)), "Michael T Kerrisk" [off-list ref] says:quoted
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, David, Thank you for the information / confirmation that this is intended behavior. I'll try to see that something on this point makes it into the man pages. Cheers, Michael -- Michael Kerrisk mtk-lists@gmx.net NEU: WLAN-Router f�r 0,- EUR* - auch f�r DSL-Wechsler! GMX DSL = superg�nstig & kabellos http://www.gmx.net/de/go/dsl