about summary refs log tree commit homepage
path: root/lib/rainbows
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-03 01:18:45 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-03 01:18:45 +0000
commit8fb350e00c1421907cbc36cbf29c499b8ad051e4 (patch)
treecbe6d3baf46519db1c9a27c5e4aa500f701aea7c /lib/rainbows
parente9a229c639dd6bda08a3fa8ce14af3688dc2ba63 (diff)
downloadrainbows-8fb350e00c1421907cbc36cbf29c499b8ad051e4.tar.gz
We won't forget to reset defaults on SIGHUP anymore.
Diffstat (limited to 'lib/rainbows')
-rw-r--r--lib/rainbows/http_server.rb3
1 files changed, 1 insertions, 2 deletions
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