diff options
Diffstat (limited to 'lib')
-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 |