rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 7539c025a89213ff95d374c96b330c502b8383b4 669 bytes (raw)
$ git show v3.2.0:t/t0022-copy_stream-byte-range.sh	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
#!/bin/sh
. ./test-lib.sh
test -r random_blob || die "random_blob required, run with 'make $0'"
case $RUBY_VERSION in
1.9.*) ;;
*)
	t_info "skipping $T since it can't IO.copy_stream"
	exit 0
	;;
esac

case $model in
ThreadSpawn|WriterThreadSpawn|ThreadPool|WriterThreadPool|Base) ;;
*)
	t_info "skipping $T since it doesn't use IO.copy_stream"
	exit 0
	;;
esac

t_plan 13 "IO.copy_stream byte range response for $model"

t_begin "setup and startup" && {
	rtmpfiles out err
	rainbows_setup $model
	# can't load Rack::Lint here since it clobbers body#to_path
	rainbows -E none -D large-file-response.ru -c $unicorn_config
	rainbows_wait_start
}

. ./byte-range-common.sh

git clone https://yhbt.net/rainbows.git