about summary refs log tree commit homepage
path: root/lib/rainbows
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-10-12 16:14:49 -0700
committerEric Wong <normalperson@yhbt.net>2011-10-12 16:14:49 -0700
commitdb46699c438c2d1287563587fddea84e34c53482 (patch)
tree7f7b8c60932d804efdc13e228f949d3f2e094498 /lib/rainbows
parent0b955487e44011d80a457618c2e8148c8ec05e05 (diff)
downloadrainbows-db46699c438c2d1287563587fddea84e34c53482.tar.gz
Telling the user worker_connections=50 when using the Base
concurrency model is misleading.
Diffstat (limited to 'lib/rainbows')
-rw-r--r--lib/rainbows/http_server.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 746d534..637710d 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -18,7 +18,8 @@ class Rainbows::HttpServer < Unicorn::HttpServer
     @logger = Unicorn::Configurator::DEFAULTS[:logger]
     super(app, options)
     defined?(@use) or self.use = Rainbows::Base
-    @worker_connections ||= @use == :Base ? 1 : 50
+    @worker_connections ||= 50
+    @worker_connections = 1 if @use == :Base
   end
 
   # Add one second to the timeout since our fchmod heartbeat is less