diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-27 20:51:16 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-27 20:51:16 +0000 |
commit | 38672501206c9e64d241e3d8571f70b198f0c1e5 (patch) | |
tree | 0221a07a3d948dd98dc51bc8b35ba1ab14c74e66 | |
parent | fb8bb4469849fa2b2241152aea7e9e82bd3cbcc8 (diff) | |
download | unicorn-38672501206c9e64d241e3d8571f70b198f0c1e5.tar.gz |
IO.select in Ruby can't wait longer than this. This means Unicorn can't support applications that take longer than 68 years to respond :(
-rw-r--r-- | lib/unicorn/configurator.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index bdb77ec..2c5fe86 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -186,6 +186,8 @@ class Unicorn::Configurator # } def timeout(seconds) set_int(:timeout, seconds, 3) + max = 0x7fffffff + set[:timeout] = seconds > max ? max : seconds end # sets the current number of worker_processes to +nr+. Each worker |