From ca8021d4177e5f7131f88daf6b56402ff39c3a35 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 29 Apr 2011 18:14:10 +0000 Subject: epoll: fix timeout Epoll#wait and epoll_wait(2) timeouts are in milliseconds, not seconds. This affects xepoll, too. --- lib/rainbows/epoll.rb | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-ge0c7