about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.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/http_server.rb
parent4060b7742d047c0000fd1bf4ac2c3b9cae95585a (diff)
downloadrainbows-ed7669ced3aba5c0ba6f5fbee9411546b32c96df.tar.gz
Easier just to use an instance variable
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 906fa0a..13b731b 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -36,7 +36,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
 
   def load_config!
     use :Base
-    G.kato = 5
+    Rainbows.keepalive_timeout = 5
     Rainbows.max_bytes = 1024 * 1024
     @worker_connections = nil
     super
@@ -91,7 +91,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
   def keepalive_timeout(nr)
     (Integer === nr && nr >= 0) or
       raise ArgumentError, "keepalive_timeout must be a non-negative Integer"
-    G.kato = nr
+    Rainbows.keepalive_timeout = nr
   end
 
   def keepalive_requests(nr)