summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-29 18:48:42 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-29 18:56:06 +0000
commitcdb9bc905cf8e15e8a7d0900f57409f54a7b80ac (patch)
treed1a045944b7c1a323e9e6103791b2ad9801729e4
parent19f798301ac1884f423640efafb277b071bb5439 (diff)
Nobody will miss one second if they specify an "infinite"
timeout of ~68 years.  This prevents duplicating this logic
in Rainbows!
-rw-r--r--lib/unicorn/configurator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index 2c5fe86..8816c85 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -186,7 +186,7 @@ class Unicorn::Configurator
   #    }
   def timeout(seconds)
     set_int(:timeout, seconds, 3)
-    max = 0x7fffffff
+    max = 0x7ffffffe # Rainbows! adds one second to this for safety
     set[:timeout] = seconds > max ? max : seconds
   end