http_server: add one second to any requested timeout
commita59778612a3b651d4a59f37ecfdbba606b4263a6
authorEric Wong <normalperson@yhbt.net>
Wed, 4 Nov 2009 09:42:35 +0000 (4 01:42 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 Nov 2009 07:03:21 +0000 (4 23:03 -0800)
tree69dbdb04a65f17030576428887917b685f120363
parentb7041284279371ffe16de31880c19d48f6a624bb
http_server: add one second to any requested timeout

This is because our timeout implementations are less precise
than Unicorn.  Since we handle multiple clients with the same
process, we sacrifice precision for performance and instead
implement our fchmod heartbeats at a fixed rate, as doing
fchmod() repeated for short-lived connections would hurt
performance and we have to call fchmod even when connected
clients are idle.
lib/rainbows/http_server.rb