support SO_REUSEPORT on new listeners (:reuseport)
authorEric Wong <e@80x24.org>
Fri, 25 Oct 2013 19:27:05 +0000 (19:27 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 25 Oct 2013 20:00:37 +0000 (20:00 +0000)
commit7c125886b5862bf20711bae22e6697ad46141434
tree17e08b48ff591ab43a369067a3c23c6e0dbcb3c3
parent1dc099228ee0f59c13385a3e7346a2cb37d85153
support SO_REUSEPORT on new listeners (:reuseport)

This allows users to start an independent instance of unicorn on
a the same port as a running unicorn (as long as both instances
use :reuseport).

ref: https://lwn.net/Articles/542629/
lib/unicorn/configurator.rb
lib/unicorn/socket_helper.rb
test/unit/test_socket_helper.rb