about summary refs log tree commit homepage
path: root/lib/rainbows/response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 16:29:53 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-06 07:16:40 +0000
commited7669ced3aba5c0ba6f5fbee9411546b32c96df (patch)
tree806cab7dc260040733957453deead208a95c37c2 /lib/rainbows/response.rb
parent4060b7742d047c0000fd1bf4ac2c3b9cae95585a (diff)
downloadrainbows-ed7669ced3aba5c0ba6f5fbee9411546b32c96df.tar.gz
Easier just to use an instance variable
Diffstat (limited to 'lib/rainbows/response.rb')
-rw-r--r--lib/rainbows/response.rb3
1 files changed, 2 insertions, 1 deletions
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)