1 # -*- encoding: binary -*-
3 module Rainbows::TimedRead
4 G = Rainbows::G # :nodoc:
10 def kgio_wait_readable
11 IO.select([self], nil, nil, G.kato)
14 # used for reading headers (respecting keepalive_timeout)
18 case rv = kgio_tryread(16384, buf)
20 return if expire && expire < Time.now
21 expire ||= read_expire