netdev
[Top] [All Lists]

Re: SO_REUSEADDR behavior different from BSD

To: YOSHIFUJI.Hideaki/$B5HF#1QL@.sgi.com (B <yoshfuji@xxxxxxxxxx>)
Subject: Re: SO_REUSEADDR behavior different from BSD
From: "Michael T Kerrisk" <mtk-lists@xxxxxxx>
Date: Fri, 6 Aug 2004 00:25:19 +0200 (MEST)
Cc: ahu@xxxxxxx, netdev@xxxxxxxxxxx, David Stevens <dlstevens@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
> In article <19686.1091723777@xxxxxxxxxxxxx> (at Thu, 5 Aug 2004 18:36:17
> +0200 (MEST)), "Michael T Kerrisk" <mtk-lists@xxxxxxx> 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, 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@xxxxxxx

NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl


<Prev in Thread] Current Thread [Next in Thread>