diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-10-12 16:14:49 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-10-12 16:14:49 -0700 |
commit | db46699c438c2d1287563587fddea84e34c53482 (patch) | |
tree | 7f7b8c60932d804efdc13e228f949d3f2e094498 | |
parent | 0b955487e44011d80a457618c2e8148c8ec05e05 (diff) | |
download | rainbows-db46699c438c2d1287563587fddea84e34c53482.tar.gz |
Telling the user worker_connections=50 when using the Base concurrency model is misleading.
-rw-r--r-- | lib/rainbows/http_server.rb | 3 |
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 |