coolio+xepoll_thread*: use shutdown() for keepalive timeout
[rainbows.git] / t / t0026-splice-copy_stream-byte-range.sh
blobb4b89e5118001ab0510d1bbc75772a11cb34db84
1 #!/bin/sh
2 . ./test-lib.sh
3 test -r random_blob || die "random_blob required, run with 'make $0'"
4 check_copy_stream
5 check_splice
7 t_plan 13 "IO::Splice.copy_stream byte range response for $model"
9 t_begin "setup and startup" && {
10 rtmpfiles out err
11 rainbows_setup $model
12 cat >> $unicorn_config <<EOF
13 require "io/splice"
14 Rainbows! do
15 copy_stream IO::Splice
16 end
17 def (::IO).copy_stream(*x); abort "NO"; end
18 EOF
20 # can't load Rack::Lint here since it clobbers body#to_path
21 rainbows -E none -D large-file-response.ru -c $unicorn_config
22 rainbows_wait_start
25 . ./byte-range-common.sh