diff options
author | Eric Wong <e@80x24.org> | 2015-11-18 03:58:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-11-21 01:43:29 +0000 |
commit | 0a10915fff80ff90bdef2a905dfdc589e815aefd (patch) | |
tree | 8692e5af9d367f57732dc985ba4c3d44af723fa6 /lib/rainbows/fiber/io.rb | |
parent | df169eb21fd571853bd388079d04e86a59298e9c (diff) | |
download | rainbows-0a10915fff80ff90bdef2a905dfdc589e815aefd.tar.gz |
The timeout (mis)feature in unicorn uses the monotonic clock if available. We must follow suit to avoid having our timeout functionality completely broken.
Diffstat (limited to 'lib/rainbows/fiber/io.rb')
-rw-r--r-- | lib/rainbows/fiber/io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb index b121854..111132f 100644 --- a/lib/rainbows/fiber/io.rb +++ b/lib/rainbows/fiber/io.rb @@ -63,7 +63,7 @@ class Rainbows::Fiber::IO expire = nil case rv = Kgio.tryread(@to_io, 16384, buf) when :wait_readable - return if expire && expire < Time.now + return if expire && expire < Rainbows.now expire ||= read_expire kgio_wait_readable else |