rev_thread_*: fix IO proxy failures w/pipelining
commit33eeda85248c9132366f94f1e1a83365bb33b5a7
authorEric Wong <normalperson@yhbt.net>
Sat, 28 Aug 2010 03:23:51 +0000 (28 03:23 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 28 Aug 2010 03:23:51 +0000 (28 03:23 +0000)
treefdceaa53a8fe60407c0eef765cdc2cbf49fa22de
parent6e3a07b69e79ee0d3f554cbe72d37669586fa449
rev_thread_*: fix IO proxy failures w/pipelining

Proxying IO objects with threaded Rev concurrency models
occasionally failed with pipelined requests (t0034).  By
deferring the on_write_complete callback until the next
"tick" (similar to what we do in Rev::Client#write),
we prevent clobbering responses during pipelining.
lib/rainbows/rev/client.rb