1 # -*- encoding: binary -*-
3 module Rainbows::ReadTimeout
4 G = Rainbows::G # :nodoc:
7 IO.select([self], nil, nil, G.kato)
10 # used for reading headers (respecting keepalive_timeout)
11 def read_timeout(buf = "")
14 case rv = kgio_tryread(16384, buf)
18 now > expire and return