From ce7ba57be23d4ef8987d257c35d8b1bed9b5a363 Mon Sep 17 00:00:00 2001 From: John Bachir Date: Wed, 15 May 2024 15:13:00 -0400 Subject: [PATCH] use attr_reader instead of variable to be consistent with other variable access --- lib/rack/timeout/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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