From 33eeda85248c9132366f94f1e1a83365bb33b5a7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Aug 2010 03:23:51 +0000 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- cgit v1.2.3-24-ge0c7