3 t_plan
5 "max_header_len setting (only intended for Rainbows!)"
5 t_begin
"setup and start" && {
7 req
='GET / HTTP/1.0\r\n\r\n'
8 len
=$
(printf "$req" | count_bytes
)
9 echo Unicorn
::HttpParser.max_header_len
= $len >> $unicorn_config
10 unicorn
-D -c $unicorn_config env.ru
14 t_begin
"minimal request succeeds" && {
21 ) | socat
- TCP
:$listen > $fifo
22 test xok
= x$
(cat $ok)
24 fgrep
"HTTP/1.1 200 OK" $tmp
27 t_begin
"big request fails" && {
31 printf 'GET /xxxxxx HTTP/1.0\r\n\r\n'
34 ) | socat
- TCP
:$listen > $fifo
35 test xok
= x$
(cat $ok)
36 fgrep
"HTTP/1.1 413" $tmp
41 t_begin
"killing succeeds" && {
45 t_begin
"check stderr" && {