3 skip_models StreamResponseEpoll
5 t_plan
6 "keepalive_timeout tests for $model"
7 t_begin
"setup and start" && {
9 rainbows
-D env.ru
-c $unicorn_config
13 t_begin
'check server up' && {
14 curl
-sSf http
://$listen/
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 >=5s)"
32 t_begin
'keepalive not unreasonably long' && {
36 t_begin
"killing succeeds" && {
40 t_begin
"check stderr" && {