diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-27 21:20:42 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-27 21:20:42 +0000 |
commit | 37c376a9253ed62d134cbb4dbc6eaecc6076c77e (patch) | |
tree | a72ca46c9820cffd49595184ac9ae7d2d3e0c8e6 | |
parent | 1f8ebc013e8b0e9a62587fb95a81e8c5f541a9d4 (diff) | |
download | rainbows-37c376a9253ed62d134cbb4dbc6eaecc6076c77e.tar.gz |
We can't wait for longer than 68 years.
-rw-r--r-- | lib/rainbows/http_server.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 746d534..2573032 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -27,8 +27,9 @@ 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=(nr) - @timeout = nr + 1 + def timeout=(seconds) + max = 0x7fffffff + @timeout = seconds >= max ? max : seconds + 1 end def load_config! |