diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 00:21:23 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-09 00:21:23 +0000 |
commit | 9afcdde9a92f817330e4dfd5e1ef77a7bf461253 (patch) | |
tree | 5b58530a05cf73f2fdbdf55bd86b9acd9a741cdd /lib/rainbows/xepoll_thread_pool | |
parent | 725adcc6986bc2658d92ea3ebebe61d2b83060ad (diff) | |
download | rainbows-9afcdde9a92f817330e4dfd5e1ef77a7bf461253.tar.gz |
We're now able to configure the number of threads independently of worker_connections.
Diffstat (limited to 'lib/rainbows/xepoll_thread_pool')
-rw-r--r-- | lib/rainbows/xepoll_thread_pool/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/xepoll_thread_pool/client.rb b/lib/rainbows/xepoll_thread_pool/client.rb index b2c5928..1bfb1c2 100644 --- a/lib/rainbows/xepoll_thread_pool/client.rb +++ b/lib/rainbows/xepoll_thread_pool/client.rb @@ -33,7 +33,7 @@ module Rainbows::XEpollThreadPool::Client end QUEUE = Queue.new - APP_POOL = (1..20).each { Thread.new { app_run(QUEUE) } } + Rainbows::O[:pool_size].times { Thread.new { app_run(QUEUE) } } ep = SleepyPenguin::Epoll EP = ep.new |