diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-20 00:54:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-20 03:42:55 +0000 |
commit | 7e0dc42f7084e1719456a80b2e44049133c2e8b7 (patch) | |
tree | c9840f4eb56cc365664425b40b94978f43c40ed8 /t/t9101-thread-timeout-threshold.sh | |
parent | 886e0a006d9e8e9c586beae28ed4dc5097064e90 (diff) | |
download | rainbows-7e0dc42f7084e1719456a80b2e44049133c2e8b7.tar.gz |
This was causing unrelated requests to get killed every +timeout+ seconds, instead of only the ones that were running too long. Noticed-by: ghazel@gmail.com ref: http://mid.gmane.org/AANLkTi=7OhyTwkHsp_rXU7Gp1PokihiQ9bJigpO-BfN6@mail.gmail.com
Diffstat (limited to 't/t9101-thread-timeout-threshold.sh')
-rwxr-xr-x | t/t9101-thread-timeout-threshold.sh | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/t/t9101-thread-timeout-threshold.sh b/t/t9101-thread-timeout-threshold.sh index 1979dba..99d3f98 100755 --- a/t/t9101-thread-timeout-threshold.sh +++ b/t/t9101-thread-timeout-threshold.sh @@ -30,25 +30,16 @@ t_begin "8 sleepy requests do not time out" && { test xHI = x"$(sort < $curl_out | uniq)" } -t_begin "9 sleepy requests do time out" && { +t_begin "9 sleepy requests, some time out" && { > $curl_err > $curl_out for i in 1 2 3 4 5 6 7 8 9 do - rtmpfiles curl_err_$i curl -sSf --no-buffer \ - http://$listen/3 2>> ${curl_err}_${i} >> $curl_out & + http://$listen/3 2>> $curl_err >> $curl_out & done wait - if test -s $curl_out - then - dbgcat curl_out - die "$curl_out should be empty" - fi - for i in 1 2 3 4 5 6 7 8 9 - do - grep 408 ${curl_err}_${i} - done + grep 408 $curl_err } t_begin "kill server" && { |