diff options
Diffstat (limited to 'lib/rainbows/client.rb')
-rw-r--r-- | lib/rainbows/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/client.rb b/lib/rainbows/client.rb index 3d92da1..9b65cea 100644 --- a/lib/rainbows/client.rb +++ b/lib/rainbows/client.rb @@ -1,5 +1,6 @@ # -*- encoding: binary -*- # :enddoc: +require "io/wait" # this class is used for most synchronous concurrency models class Rainbows::Client < Kgio::Socket @@ -8,7 +9,7 @@ class Rainbows::Client < Kgio::Socket end def kgio_wait_readable - IO.select([self], nil, nil, Rainbows.keepalive_timeout) + wait Rainbows.keepalive_timeout end # used for reading headers (respecting keepalive_timeout) |