diff options
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r-- | lib/rainbows/event_machine.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 99fa32e..8029b1a 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -91,10 +91,9 @@ module Rainbows::EventMachine # long-running async response (response.nil? || -1 == response[0]) and return @state = :close - alive = @hp.keepalive? && G.alive && G.kato > 0 + alive = @hp.next? && G.alive && G.kato > 0 em_write_response(response, alive) if alive - @hp.reset @state = :headers if @buf.empty? set_comm_inactivity_timeout(G.kato) |