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: e47e6b2afa93
Choose a base ref
...
head repository: joyent/libuv
compare: 17452cd0e232
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 24, 2013

  1. linux: fix setsockopt(SO_REUSEPORT) error handling

    Linux as of 3.9 has a SO_REUSEPORT option that is similar but not
    identical to its BSD counterpart.
    
    On the BSDs, it turns on SO_REUSEADDR _and_ makes it possible to share
    the address and port across processes.
    
    On Linux, it "merely" enables fair load distribution - port sharing
    still requires that you set SO_REUSEADDR.
    
    Fair distribution is a desirable trait but not an essential one.
    We don't know in advance whether the kernel actually supports
    SO_REUSEPORT so don't treat EINVAL or ENOPROTOOPT as errors.
    
    As an aside, on the BSDs we now omit the setsockopt(SO_REUSEADDR)
    system call because it's implied by SO_REUSEPORT.
    
    Fixes #870.
    bnoordhuis committed Aug 24, 2013
    Copy the full SHA
    17452cd View commit details
    Browse the repository at this point in the history