i'm testing nginx v1.1.9 with v0.24 chunkin module
# nginx -V
nginx version: nginx/1.1.19
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure arguments: --prefix=/opt/nginx-1.1.19 --add-module=/root/chunkin-nginx-module-0.23 --add-module=/root/echo-nginx-module-0.49 --add-module=/root/ngx_devel_kit-0.2.19 --add-module=/root/lua-nginx-module-0.9.2
# prove -v t/max_chunks.t
t/max_chunks.t ..
1..6
ok 1 - TEST 3: JUST exceeding the custom max chunks per buf setting - status code ok
ok 2 - TEST 3: JUST exceeding the custom max chunks per buf setting - response_body - response is expected
ok 3 - TEST 1: exceeding the default max chunks per buf setting (512) - status code ok
ok 4 - TEST 1: exceeding the default max chunks per buf setting (512) - response_body - response is expected
ok 5 - TEST 2: NOT exceeding the custom max chunks per buf setting - status code ok
ok 6 - TEST 2: NOT exceeding the custom max chunks per buf setting - response_body - response is expected
ok
All tests successful.
Files=1, Tests=6, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.18 cusr 0.03 csys = 0.23 CPU)
Result: PASS
# prove -v t/random.t
t/random.t ..
1..2000
not ok 1 - TEST 1: single chunk - status code ok
# Failed test 'TEST 1: single chunk - status code ok'
# at /usr/local/share/perl/5.14.2/Test/Nginx/Socket.pm line 776.
# got: '500'
# expected: '200'
not ok 2 - TEST 1: single chunk - response_body - response is expected
# Failed test 'TEST 1: single chunk - response_body - response is expected'
# at /usr/local/share/perl/5.14.2/Test/Nginx/Socket.pm line 1066.
# got: "<html>\x{0d}\x{0a}<head><title>500 Internal Server Error</ti"...
# length: 193
# expected: "WW\x{11}X\x{08}~t\x{17}\x{03} G6z#v\x{08}('\x{17}o\x{1d}s\x{09}8sAl_@I:SR\x{0f}\x{1c}cYWuU\x{07}4F<lu\x{12}!"...
# length: 4368
# strings begin to differ at char 1 (line 1 column 1)
WARNING: TEST 1: single chunk - 2013/11/20 11:25:59 [crit] 2460#0: *1 open() \"/root/chunkin-nginx-module-0.23/t/servroot/client_body_temp/0000000001\" failed (13: Permission denied), client: 127.0.0.1, server: localhost, request: \"POST /ar.do HTTP/1.1\", host: \"localhost\" at /usr/local/share/perl/5.14.2/Test/Nginx/Socke