From 19a7c3afcb22af75ac3afc358e96325d00415ace Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 29 Jun 2011 19:57:05 +0000 Subject: Revert "http_server: cap timeout at 32-bit LONG_MAX seconds" Unicorn (> 4.0.1) already handles this for us, not that it affects many people... This reverts commit 37c376a9253ed62d134cbb4dbc6eaecc6076c77e. --- lib/rainbows/http_server.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/rainbows/http_server.rb') 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! -- cgit v1.2.3-24-ge0c7