1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Don't let persistent_timeout be nil

I got some errors in a project that uses Puma because persistent_timeout doesn't get set, and arithmetic with nil explodes.
This commit is contained in:
benzrf 2016-07-19 15:22:27 -04:00 committed by GitHub
parent 7cdb33ff6f
commit aa2e6025f6

View file

@ -63,7 +63,7 @@ module Puma
@thread = nil
@thread_pool = nil
@persistent_timeout = options[:persistent_timeout]
@persistent_timeout = options.fetch(:persistent_timeout, PERSISTENT_TIMEOUT)
@binder = Binder.new(events)
@own_binder = true