about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-16 20:13:00 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-16 20:13:00 +0000
commit362ac7801d4f6ddd85cbafdc7e9118f88089564a (patch)
tree11364cb899e03b0df72cc9da0a1de182344ba36c /lib
parentf9de85b9a35c9f95b390249ea855858c5e4a3ae2 (diff)
downloadrainbows-362ac7801d4f6ddd85cbafdc7e9118f88089564a.tar.gz
Only needed for Ruby 1.9
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows/http_server.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 0fbc38f..cbeb38f 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -62,6 +62,8 @@ class Rainbows::HttpServer < Unicorn::HttpServer
          :CoolioThreadSpawn, :RevThreadSpawn,
          :XEpollThreadSpawn, :WriterThreadPool, :WriterThreadSpawn
       trysetrlimit(:RLIMIT_NPROC, @worker_connections + LISTENERS.size + 1)
+    when :XEpollThreadPool, :CoolioThreadPool
+      trysetrlimit(:RLIMIT_NPROC, Rainbows::O[:pool_size] + LISTENERS.size + 1)
     end
     super
   end