3 skip_models StreamResponseEpoll
4 t_plan
6 "keepalive_timeout 0 tests for $model"
6 t_begin
"setup and start" && {
7 rainbows_setup
$model 2 0
8 grep 'keepalive_timeout 0' $unicorn_config
9 rainbows
-D env.ru
-c $unicorn_config
13 t_begin
'check server responds with Connection: close' && {
14 curl
-sSfi http
://$listen/ |
grep 'Connection: close'
17 t_begin
"send keepalive response that does not expect close" && {
18 req
='GET / HTTP/1.1\r\nHost: example.com\r\n\r\n'
25 ) | socat
- TCP
:$listen > $fifo
27 elapsed
=$
(( $now - $t0 ))
28 t_info
"elapsed=$elapsed (expecting <=3)"
32 t_begin
"'Connection: close' header set" && {
33 grep 'Connection: close' $tmp
36 t_begin
"killing succeeds" && {
40 t_begin
"check stderr" && {