diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-02 08:05:45 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-02 08:05:45 -0700 |
commit | 25c5930988d6deab8f885981fdaf6c1eb12fdf98 (patch) | |
tree | 727830c9f05fe2c8fcff6f9f17ac06567e8cadc8 /lib/rainbows | |
parent | ce4f5cd7197fb99ed99399b22cbece1684532f85 (diff) | |
download | rainbows-25c5930988d6deab8f885981fdaf6c1eb12fdf98.tar.gz |
pavinging the way for changing MODEL_WORKER_CONNECTIONS
Diffstat (limited to 'lib/rainbows')
-rw-r--r-- | lib/rainbows/http_server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 02f3405..4e1d7d9 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -11,7 +11,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer @logger = Unicorn::Configurator::DEFAULTS[:logger] super(app, options) defined?(@use) or use(:Base) - @worker_connections ||= Rainbows::MODEL_WORKER_CONNECTIONS[@use] + @worker_connections ||= @use == :Base ? 1 : 50 end def reopen_worker_logs(worker_nr) @@ -38,7 +38,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer Rainbows.max_bytes = 1024 * 1024 @worker_connections = nil super - @worker_connections ||= Rainbows::MODEL_WORKER_CONNECTIONS[@use] + @worker_connections ||= @use == :Base ? 1 : 50 end def worker_loop(worker) |