add "copy_stream" config directive
commit39f625fff05d457b01f088017f463a86d3b6c626
authorEric Wong <normalperson@yhbt.net>
Mon, 16 May 2011 19:04:06 +0000 (16 19:04 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 16 May 2011 19:34:52 +0000 (16 19:34 +0000)
treeeae2a3a759b70e0f6d12caefdf177d3eca418efe
parentd520222050ce88388ae5e446c63642d79cc9796e
add "copy_stream" config directive

This allows using IO::Splice.copy_stream from the "io_splice"
RubyGem on recent Linux systems.  This also allows users to
disable copy_stream usage entirely and use traditional
response_body.each calls which are compatible with all Rack
servers (to workaround bugs in IO.copy_stream under 1.9.2-p180).
lib/rainbows/configurator.rb
lib/rainbows/http_server.rb
lib/rainbows/response.rb
lib/rainbows/writer_thread_pool/client.rb
lib/rainbows/writer_thread_spawn/client.rb
t/t0026-splice-copy_stream-byte-range.sh [new file with mode: 0644]
t/t0027-nil-copy_stream.sh [new file with mode: 0644]
t/test-lib.sh
t/test_isolate.rb