From d530028f56c8417db516a1ad6d3960d28e8f771e Mon Sep 17 00:00:00 2001 From: John Bachir Date: Thu, 16 May 2024 12:32:12 -0400 Subject: [PATCH] fixup: use attr_reader instead of variable access (#214) --- 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