3 t_plan
6 "keepalive_timeout tests for $model"
5 t_begin
"setup and start" && {
7 rainbows
-D env.ru
-c $unicorn_config
11 t_begin
'check server up' && {
12 curl
-sSf http
://$listen/
15 t_begin
"send keepalive response that does not expect close" && {
16 req
='GET / HTTP/1.1\r\nHost: example.com\r\n\r\n'
23 ) | socat
- TCP
:$listen > $fifo
25 elapsed
=$
(( $now - $t0 ))
26 t_info
"elapsed=$elapsed (expecting >=5s)"
30 t_begin
'keepalive not unreasonably long' && {
34 t_begin
"killing succeeds" && {
38 t_begin
"check stderr" && {