rev*: properly handle pipelined responses w/sendfile
commit052e2b3608071d9cd9d6b1d12f8cb69ac29124af
authorEric Wong <normalperson@yhbt.net>
Sun, 25 Jul 2010 09:28:22 +0000 (25 09:28 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 26 Jul 2010 09:23:49 +0000 (26 09:23 +0000)
treed1c72552fd8ccc7dd5d3ad3a4dd76fbf68ebea72
parent84ac2eaa8bd16e44420abf660420698f76ad5473
rev*: properly handle pipelined responses w/sendfile

With sendfile enabled, we must avoid writing headers (or normal,
non-file responses) while a file is deferred for sending.  This
means we must disable processing of new requests while a file
is deferred for sending and use the on_write_complete callback
less aggressively.
lib/rainbows/rev/client.rb
lib/rainbows/rev/deferred_response.rb
lib/rainbows/rev/thread.rb
t/t0024-pipelined-sendfile-response.sh [new file with mode: 0755]
t/test_isolate.rb