mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Expose latency and listen backlog via bind query. Fixes #370
This commit is contained in:
parent
ef4e55a5b7
commit
43b2b7342d
1 changed files with 6 additions and 1 deletions
|
@ -87,8 +87,13 @@ module Puma
|
|||
logger.log "* Inherited #{str}"
|
||||
io = inherit_tcp_listener uri.host, uri.port, fd
|
||||
else
|
||||
params = Rack::Utils.parse_query uri.query
|
||||
|
||||
opt = params.key?('low_latency')
|
||||
bak = params.fetch('backlog', 1024).to_i
|
||||
|
||||
logger.log "* Listening on #{str}"
|
||||
io = add_tcp_listener uri.host, uri.port
|
||||
io = add_tcp_listener uri.host, uri.port, opt, bak
|
||||
end
|
||||
|
||||
@listeners << [str, io]
|
||||
|
|
Loading…
Reference in a new issue