1
0
Fork 0
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:
Evan Phoenix 2014-01-25 17:02:32 -08:00
parent ef4e55a5b7
commit 43b2b7342d

View file

@ -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]