From 8fb350e00c1421907cbc36cbf29c499b8ad051e4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 May 2011 01:18:45 +0000 Subject: Rainbows! defaults more DRY We won't forget to reset defaults on SIGHUP anymore. --- lib/rainbows/http_server.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/rainbows/http_server.rb') diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index acc64b5..cd289b7 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -34,8 +34,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer def load_config! use :Base - Rainbows.keepalive_timeout = 5 - Rainbows.client_max_body_size = 1024 * 1024 + Rainbows.defaults! @worker_connections = nil super @worker_connections ||= @use == :Base ? 1 : 50 -- cgit v1.2.3-24-ge0c7