mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Use REUSEADDR. Fixes #60
This commit is contained in:
parent
3051dafdeb
commit
c9f616e924
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ module Puma
|
|||
if optimize_for_latency
|
||||
s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
|
||||
end
|
||||
s.setsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR, true)
|
||||
s.listen backlog
|
||||
@ios << s
|
||||
s
|
||||
|
@ -130,6 +131,7 @@ module Puma
|
|||
if optimize_for_latency
|
||||
s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
|
||||
end
|
||||
s.setsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR, true)
|
||||
s.listen backlog
|
||||
|
||||
env = @proto_env.dup
|
||||
|
|
Loading…
Add table
Reference in a new issue