event_machine: buffer reads when waiting for async.callback
commit89f948aeaef34114ec61291ff8ffbebcf85a748e
authorEric Wong <normalperson@yhbt.net>
Wed, 12 Jan 2011 00:01:20 +0000 (11 16:01 -0800)
committerEric Wong <normalperson@yhbt.net>
Wed, 12 Jan 2011 00:28:44 +0000 (11 16:28 -0800)
tree6c0a8d3a7b7b6f9d33ee2f3498b3d55acfda1343
parent0515dee246536cb3942f51f8d264737f106d3985
event_machine: buffer reads when waiting for async.callback

We cannot trigger on_read events and invoke the HTTP parser and
modify @env while we're waiting for an application to run
async.callback.  We also need to clear (and *maybe* re-set)
@deferred if we're writing from async.callback
lib/rainbows/coolio/client.rb
lib/rainbows/ev_core.rb
lib/rainbows/event_machine/client.rb
t/t0402-async-keepalive.sh