From 25c5930988d6deab8f885981fdaf6c1eb12fdf98 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 2 May 2011 08:05:45 -0700 Subject: http_server: default all options to 50 connections pavinging the way for changing MODEL_WORKER_CONNECTIONS --- lib/rainbows/http_server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows') 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) -- cgit v1.2.3-24-ge0c7