diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-10 18:07:21 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-11 13:24:23 -0800 |
commit | 69d8ec2f167eb99a1efec4a770ba5951e7c366f0 (patch) | |
tree | 4a809940fdcfa1f596d48401f7d7e2426ae3453b /lib/rainbows/coolio/thread_client.rb | |
parent | bf6eb8f1f79ed57ee317b2e6f73c70a59708739f (diff) | |
download | rainbows-69d8ec2f167eb99a1efec4a770ba5951e7c366f0.tar.gz |
The lack of an equivlent to EM::Deferrable prevents us from doing streaming/trickling responses, but a one-shot body should work fine for Coolio and generating dynamic responses.
Diffstat (limited to 'lib/rainbows/coolio/thread_client.rb')
-rw-r--r-- | lib/rainbows/coolio/thread_client.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rainbows/coolio/thread_client.rb b/lib/rainbows/coolio/thread_client.rb index 6cd77b9..b837115 100644 --- a/lib/rainbows/coolio/thread_client.rb +++ b/lib/rainbows/coolio/thread_client.rb @@ -14,9 +14,7 @@ class Rainbows::Coolio::ThreadClient < Rainbows::Coolio::Client # this is only called in the master thread def response_write(response) - coolio_write_response(response, alive = @hp.next?) - return quit unless alive && :close != @state - @state = :headers + ev_write_response(*response, @hp.next?) rescue => e handle_error(e) end |