about summary refs log tree commit homepage
path: root/lib/rainbows/timed_read.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/timed_read.rb
parent4060b7742d047c0000fd1bf4ac2c3b9cae95585a (diff)
downloadrainbows-ed7669ced3aba5c0ba6f5fbee9411546b32c96df.tar.gz
Easier just to use an instance variable
Diffstat (limited to 'lib/rainbows/timed_read.rb')
-rw-r--r--lib/rainbows/timed_read.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/timed_read.rb b/lib/rainbows/timed_read.rb
index dd7939e..72cabbb 100644
--- a/lib/rainbows/timed_read.rb
+++ b/lib/rainbows/timed_read.rb
@@ -4,11 +4,11 @@ module Rainbows::TimedRead
   G = Rainbows::G # :nodoc:
 
   def read_expire
-    Time.now + G.kato
+    Time.now + Rainbows.keepalive_timeout
   end
 
   def kgio_wait_readable
-    IO.select([self], nil, nil, G.kato)
+    IO.select([self], nil, nil, Rainbows.keepalive_timeout)
   end
 
   # used for reading headers (respecting keepalive_timeout)