about summary refs log tree commit homepage
path: root/lib/rainbows/timed_read.rb
diff options
context:
space:
mode:
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)