diff options
-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 |