about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-29 18:14:10 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-29 18:14:10 +0000
commitca8021d4177e5f7131f88daf6b56402ff39c3a35 (patch)
tree64fc3e4ab34fe3f803cc29d133f0f82199045cae
parent73ed28f1863d5ae3048a284e25a918255bdafe8a (diff)
downloadrainbows-ca8021d4177e5f7131f88daf6b56402ff39c3a35.tar.gz
Epoll#wait and epoll_wait(2) timeouts are in milliseconds,
not seconds.  This affects xepoll, too.
-rw-r--r--lib/rainbows/epoll.rb3
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