[haiku-commits] Re: haiku: hrev50270 - docs/user/net

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 3 May 2016 08:07:52 -0400

On Tue, May 3, 2016 at 4:36 AM, PulkoMandy <pulkomandy@xxxxxxxxx> wrote:

"Allows other sockets to share the same address" (by default, binding to an
address is exclusive).

Technically, it's not really sharing. SO_REUSEADDR only allows binding
to the same address if the existing socket bound to it is in a
closed/time-wait state (i.e. if a server process that was previously
listening on the socket just died, and the network stack hasn't yet
cleaned up the socket). Multiple binds of live sockets to the same
address are not allowed, at least not on Linux or Haiku, though in the
past this was an issue on some other OSes [1].

Regards,

Rene

[1] http://www.spread.org/pipermail/spread-users/2001-September/000354.html

Other related posts: