diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-08-28 03:23:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-28 03:23:51 +0000 |
commit | 33eeda85248c9132366f94f1e1a83365bb33b5a7 (patch) | |
tree | fdceaa53a8fe60407c0eef765cdc2cbf49fa22de /lib/rainbows/rev/client.rb | |
parent | 6e3a07b69e79ee0d3f554cbe72d37669586fa449 (diff) | |
download | rainbows-33eeda85248c9132366f94f1e1a83365bb33b5a7.tar.gz |
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.
Diffstat (limited to 'lib/rainbows/rev/client.rb')
-rw-r--r-- | lib/rainbows/rev/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb index 58cd285..8bfeb31 100644 --- a/lib/rainbows/rev/client.rb +++ b/lib/rainbows/rev/client.rb @@ -58,7 +58,7 @@ module Rainbows def next! @deferred = nil - on_write_complete + enable_write_watcher end def timeout? |