diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-30 08:32:24 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-04 16:21:17 -0800 |
commit | 72a315441937f9e0531112f2b7080da39ca6064d (patch) | |
tree | fe310ac81f73605f2e278d8680aaf9eb4e755a71 /lib/rainbows/event_machine/client.rb | |
parent | 1f28534fce2b30bf3099ea0d014b62ac4a3205f0 (diff) | |
download | rainbows-72a315441937f9e0531112f2b7080da39ca6064d.tar.gz |
This lets us simplify repetitive checks worry less about properly maintaining/closing client connections for each concurrency model we support.
Diffstat (limited to 'lib/rainbows/event_machine/client.rb')
-rw-r--r-- | lib/rainbows/event_machine/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine/client.rb b/lib/rainbows/event_machine/client.rb index 49552f3..0b46b42 100644 --- a/lib/rainbows/event_machine/client.rb +++ b/lib/rainbows/event_machine/client.rb @@ -45,7 +45,7 @@ class Rainbows::EventMachine::Client < EM::Connection # long-running async response (response.nil? || -1 == response[0]) and return @state = :close - if @hp.next? && G.alive && G.kato > 0 + if @hp.next? @state = :headers em_write_response(response, true) if @buf.empty? |