diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-11-19 10:19:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-11-19 14:44:21 -0800 |
commit | 00b854e37391322c05cc16115b245d855b4970be (patch) | |
tree | d6ad270abfa9352efbeba27c85d64de11210270a /lib/rainbows/timed_read.rb | |
parent | 0f00424be24806791f2b253ddac6d35102842646 (diff) | |
download | rainbows-00b854e37391322c05cc16115b245d855b4970be.tar.gz |
Kgio 2.0.0 has a superior API and less likely to conflict or blow up with other applications. Unicorn 3.x requires Kgio 2.x, too.
Diffstat (limited to 'lib/rainbows/timed_read.rb')
-rw-r--r-- | lib/rainbows/timed_read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/timed_read.rb b/lib/rainbows/timed_read.rb index 4a4e027..0637cef 100644 --- a/lib/rainbows/timed_read.rb +++ b/lib/rainbows/timed_read.rb @@ -3,7 +3,7 @@ module Rainbows::TimedRead G = Rainbows::G # :nodoc: - def wait_readable + def kgio_wait_readable IO.select([self], nil, nil, G.kato) end @@ -15,7 +15,7 @@ module Rainbows::TimedRead when :wait_readable return if expire && expire < Time.now expire ||= Time.now + G.kato - wait_readable + kgio_wait_readable else return rv end |