about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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