diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-27 02:59:10 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-27 02:59:10 +0000 |
commit | 2d25a86d1d17bd966eea59e5666e41d9da562811 (patch) | |
tree | e1fcd2dc5367d45667eebd4d51f28d47549310d4 | |
parent | a3d3d13711869d420b4473d492bd788ebe493053 (diff) | |
download | rainbows-2d25a86d1d17bd966eea59e5666e41d9da562811.tar.gz |
No point in waking up when our ticker runs in a separate thread.
-rw-r--r-- | lib/rainbows/thread_pool.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index f6420ae..f243dc5 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -54,7 +54,7 @@ module Rainbows::ThreadPool # all working off the same socket could be a thundering herd # problem. On the other hand, a thundering herd may not # even incur as much overhead as an extra Mutex#synchronize - ret = IO.select(LISTENERS, nil, nil, 1) and ret[0].each do |s| + ret = select(LISTENERS) and ret[0].each do |s| s = s.kgio_tryaccept and process_client(s) end rescue Errno::EINTR |