diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-11-19 10:19:45 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-11-19 16:59:01 -0800 |
commit | c6ffae22748bc22d5ef88fea2a3ca67f480ee74b (patch) | |
tree | d64947098657f2bbdbca04a6db2e43645060a223 /t/t0105-rack-input-limit-bigger.sh | |
parent | 3cee07d750f678af92318c14110c803be3f9b97f (diff) | |
download | rainbows-c6ffae22748bc22d5ef88fea2a3ca67f480ee74b.tar.gz |
To avoid denial-of-service attacks, the wrappers need to intercept requests *before* they hit the memory allocator, so we need to reimplement the read(all) and gets cases to use smaller buffers whenever the application does not specify one.
Diffstat (limited to 't/t0105-rack-input-limit-bigger.sh')
-rwxr-xr-x | t/t0105-rack-input-limit-bigger.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t0105-rack-input-limit-bigger.sh b/t/t0105-rack-input-limit-bigger.sh index e8cf95a..642dd2b 100755 --- a/t/t0105-rack-input-limit-bigger.sh +++ b/t/t0105-rack-input-limit-bigger.sh @@ -22,6 +22,7 @@ t_begin "stops a regular request" && { rm -f $tmp dbgcat curl_err dbgcat curl_out + grep 413 $curl_err test -e $ok } @@ -32,6 +33,7 @@ t_begin "stops a large chunked request" && { http://$listen/ > $curl_out 2> $curl_err || > $ok dbgcat curl_err dbgcat curl_out + grep 413 $curl_err test -e $ok } |