diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-18 00:08:26 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-18 00:08:26 -0800 |
commit | 02245b9ea8a407ac67a9633119140fa2fd2c561e (patch) | |
tree | ce18dcbd163e5c3ba8a7824b0718bc9bb8cc237d /lib | |
parent | 9ab648f027d25b90fb2e7011fcd92091f19e7b02 (diff) | |
download | rainbows-02245b9ea8a407ac67a9633119140fa2fd2c561e.tar.gz |
Fortunately it's easy here.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/event_machine.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 76085dc..056bdd5 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -51,6 +51,7 @@ module Rainbows end def app_call + set_comm_inactivity_timeout 0 begin (@env[RACK_INPUT] = @input).rewind @env[REMOTE_ADDR] = @remote_addr @@ -73,6 +74,7 @@ module Rainbows @state = :headers # keepalive requests are always body-less, so @input is unchanged @hp.headers(@env, @buf) and next + set_comm_inactivity_timeout 5 end return end while true |