about summary refs log tree commit homepage
path: root/lib/rainbows/event_machine.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-18 00:08:26 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-18 00:08:26 -0800
commit02245b9ea8a407ac67a9633119140fa2fd2c561e (patch)
treece18dcbd163e5c3ba8a7824b0718bc9bb8cc237d /lib/rainbows/event_machine.rb
parent9ab648f027d25b90fb2e7011fcd92091f19e7b02 (diff)
downloadrainbows-02245b9ea8a407ac67a9633119140fa2fd2c561e.tar.gz
Fortunately it's easy here.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r--lib/rainbows/event_machine.rb2
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