Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: d6464c87bdd3
Choose a base ref
...
head repository: joyent/libuv
compare: 9bf9edd385cd
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 25, 2013

  1. linux: don't turn on SO_REUSEPORT socket option

    On the BSDs, SO_REUSEPORT is pretty much SO_REUSEADDR with some special
    casing for IP multicast.  When two processes (that don't do multicast)
    bind to the same address, only the last one receives traffic.  It allows
    one to "steal" the bound address from another process.  (Both processes
    have to enable SO_REUSEPORT though, so it only works in a cooperative
    setting.)
    
    On Linux however, it enables port sharing, not stealing - both processes
    receive a share of the traffic.  This is a desirable trait but pre-3.9
    kernels don't support the socket option and a libuv program therefore
    behaves differently with older kernels or on another platform.
    
    The difference in behavior (sharing vs. stealing) is, in my opinion,
    big enough and confusing enough that it merits a rollback.  People
    that want this kind of functionality can prepare the socket manually
    and hand it off to uv_udp_open().
    
    This commit effectively reverts commit 17452cd.
    bnoordhuis committed Aug 25, 2013
    Copy the full SHA
    9bf9edd View commit details
    Browse the repository at this point in the history