From ed7669ced3aba5c0ba6f5fbee9411546b32c96df Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 5 Jan 2011 16:29:53 -0800 Subject: simplify keepalive_timeout accounting Easier just to use an instance variable --- lib/rainbows/response.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rainbows/response.rb') diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index 9a46659..4992696 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -12,7 +12,8 @@ module Rainbows::Response # called after forking def self.setup(klass) Kgio.accept_class = Rainbows::Client - 0 == Rainbows::G.kato and Rainbows::HttpParser.keepalive_requests = 0 + 0 == Rainbows.keepalive_timeout and + Rainbows::HttpParser.keepalive_requests = 0 end def write_headers(status, headers, alive) -- cgit v1.2.3-24-ge0c7