diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-29 18:14:10 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-29 18:14:10 +0000 |
commit | ca8021d4177e5f7131f88daf6b56402ff39c3a35 (patch) | |
tree | 64fc3e4ab34fe3f803cc29d133f0f82199045cae /lib | |
parent | 73ed28f1863d5ae3048a284e25a918255bdafe8a (diff) | |
download | rainbows-ca8021d4177e5f7131f88daf6b56402ff39c3a35.tar.gz |
Epoll#wait and epoll_wait(2) timeouts are in milliseconds, not seconds. This affects xepoll, too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/epoll.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/epoll.rb b/lib/rainbows/epoll.rb index 599c969..893a315 100644 --- a/lib/rainbows/epoll.rb +++ b/lib/rainbows/epoll.rb @@ -31,9 +31,8 @@ module Rainbows::Epoll end def self.loop - timeout = Rainbows.server.timeout begin - EP.wait(nil, timeout) { |flags, obj| obj.epoll_run } + EP.wait(nil, 1000) { |flags, obj| obj.epoll_run } while obj = ReRun.shift obj.epoll_run end |