From db46699c438c2d1287563587fddea84e34c53482 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 12 Oct 2011 16:14:49 -0700 Subject: http_server: fix log message if using Base (no concurrency) Telling the user worker_connections=50 when using the Base concurrency model is misleading. --- lib/rainbows/http_server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7