about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
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!