diff --git a/lib/rack/timeout/core.rb b/lib/rack/timeout/core.rb index ef5af59..464aa0a 100644 --- a/lib/rack/timeout/core.rb +++ b/lib/rack/timeout/core.rb @@ -139,7 +139,7 @@ def call(env) Thread.main['RACK_TIMEOUT_COUNT'] ||= 0 Thread.main['RACK_TIMEOUT_COUNT'] += 1 - if Thread.main['RACK_TIMEOUT_COUNT'] >= @term_on_timeout + if Thread.main['RACK_TIMEOUT_COUNT'] >= term_on_timeout message << ", sending SIGTERM to process #{Process.pid}" Process.kill("SIGTERM", Process.pid) else