From 39f625fff05d457b01f088017f463a86d3b6c626 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 16 May 2011 19:04:06 +0000 Subject: 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). --- t/test_isolate.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 't/test_isolate.rb') diff --git a/t/test_isolate.rb b/t/test_isolate.rb index 3cc646f..fe2aebc 100644 --- a/t/test_isolate.rb +++ b/t/test_isolate.rb @@ -37,7 +37,12 @@ Isolate.now!(opts) do gem 'rack-fiber_pool', '0.9.1' end - gem 'sleepy_penguin', '2.0.0' if RUBY_PLATFORM =~ /linux/ + if RUBY_PLATFORM =~ /linux/ + gem 'sleepy_penguin', '2.0.0' + + # is 2.6.32 new enough? + gem 'io_splice', '4.1.0' if `uname -r`.strip > '2.6.32' + end end $stdout.reopen(old_out) -- cgit v1.2.3-24-ge0c7