Rainbows! Rack HTTP server user/dev discussion
 help / color / Atom feed
b468d9d92ac3533ae9026e245e4272d914b0539d blob 1025 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
#!/bin/sh
. ./test-lib.sh

case $model in
EventMachineThreadDefer|EventMachineThreadPool|\
NeverBlock|CoolioThreadPool|XEpollThreadPool) ;;
*)
	t_info "skipping $model.$T since it doesn't support :pool_size"
	exit
	;;
esac

t_plan 6 "optional :pool_size argument for $model"

t_begin "setup and startup" && {
	rtmpfiles curl_out curl_err
	rainbows_setup $model
}

t_begin "fails with bad :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model/use :$model, :pool_size => -666/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config || echo err=$? > $ok
	test x"$(cat $ok)" = "xerr=1"
}

t_begin "starts with correct :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model.*/use :$model, :pool_size => 6/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config
	rainbows_wait_start
}

t_begin "regular TCP request works right" && {
	curl -sSfv http://$listen/
}

t_begin "no errors in stderr" && {
	check_stderr
}

t_begin "shutdown" && {
	kill $rainbows_pid
}

t_done
debug log:

solving b468d9d ...
found b468d9d in http://bogomips.org/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
found f5f6400 in http://bogomips.org/rainbows.git
preparing index
index prepared:
100755 f5f640078358b803b545b373a6a28318595bb878	t/t0041-optional-pool-size.sh

applying [1/1] http://bogomips.org/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
diff --git a/t/t0041-optional-pool-size.sh b/t/t0041-optional-pool-size.sh
index f5f6400..b468d9d 100755

Checking patch t/t0041-optional-pool-size.sh...
Applied patch t/t0041-optional-pool-size.sh cleanly.

index at:
100755 b468d9d92ac3533ae9026e245e4272d914b0539d	t/t0041-optional-pool-size.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