about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-29 19:57:05 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-29 19:57:30 +0000
commit19a7c3afcb22af75ac3afc358e96325d00415ace (patch)
tree1a9e4925f26b540abef077c082301ff535a3c49d /lib/rainbows/http_server.rb
parentc3982b7c043effcfa897086a221567c035603352 (diff)
downloadrainbows-19a7c3afcb22af75ac3afc358e96325d00415ace.tar.gz
Unicorn (> 4.0.1) already handles this for us,
not that it affects many people...

This reverts commit 37c376a9253ed62d134cbb4dbc6eaecc6076c77e.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 2573032..746d534 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -27,9 +27,8 @@ class Rainbows::HttpServer < Unicorn::HttpServer
   # connection we accept without wasting cycles.  That added to the
   # fact that we let clients keep idle connections open for long
   # periods of time means we have to chmod at a fixed interval.
-  def timeout=(seconds)
-    max = 0x7fffffff
-    @timeout = seconds >= max ? max : seconds + 1
+  def timeout=(nr)
+    @timeout = nr + 1
   end
 
   def load_config!