Rainbows! Rack HTTP server user/dev discussion
 help / color / Atom feed
f91fd0ec5f4c6136c680aa08b30ca8ca88232aa1 blob 794 bytes (raw)

 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
skip_models StreamResponseEpoll
test -r random_blob || die "random_blob required, run with 'make $0'"
case $RUBY_ENGINE in
ruby) ;;
*)
	t_info "skipping $T since it can't load the sendfile gem, yet"
	exit 0
	;;
esac

skip_models EventMachine EventMachineThreadDefer EventMachineThreadPool
skip_models EventMachineThreadSpawn
skip_models NeverBlock

t_plan 13 "sendfile byte range response for $model"

t_begin "setup and startup" && {
	rtmpfiles out err
	rainbows_setup $model
	echo 'require "sendfile"' >> $unicorn_config
	echo 'def (::IO).copy_stream(*x); abort "NO"; end' >> $unicorn_config

	# 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
debug log:

solving f91fd0e ...
found f91fd0e in http://bogomips.org/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
found a5b6ab2 in http://bogomips.org/rainbows.git
preparing index
index prepared:
100755 a5b6ab25dea9558c9293494e73e8505c6b660fcc	t/t0023-sendfile-byte-range.sh

applying [1/1] http://bogomips.org/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
diff --git a/t/t0023-sendfile-byte-range.sh b/t/t0023-sendfile-byte-range.sh
index a5b6ab2..f91fd0e 100755

Checking patch t/t0023-sendfile-byte-range.sh...
Applied patch t/t0023-sendfile-byte-range.sh cleanly.

index at:
100755 f91fd0ec5f4c6136c680aa08b30ca8ca88232aa1	t/t0023-sendfile-byte-range.sh

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git