Skip to content

Commit

Permalink
[=] fix massive header casetest error (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylsy authored Oct 28, 2024
1 parent 28ccf41 commit 7ba7e92
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/case_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1323,13 +1323,14 @@ fi


killall test_server 2> /dev/null
sudo rm -rf stdlog
${SERVER_BIN} -l d -e -x 8 > /dev/null &
sleep 1

clear_log
rm -f test_session xqc_token tp_localhost
echo -e "server amplification limit ...\c"
${CLIENT_BIN} -s 1024 -l d -t 3 -x 25 -1 >> clog
${CLIENT_BIN} -s 1024 -l d -t 3 -x 25 -1 >> stdlog
enter_aal=`grep "amplification limit" slog`
aal=`grep "blocked by anti amplification limit" slog`
leave_aal=`grep "anti-amplification state unlock" slog`
Expand All @@ -1343,12 +1344,13 @@ fi


killall test_server 2> /dev/null
sudo rm -rf stdlog
${SERVER_BIN} -l e -e -x 10 > /dev/null &
sleep 1
clear_log
echo -e "massive requests with massive header ...\c"
${CLIENT_BIN} -l e -q 50 -n 100 -x 32 -E >> clog
result=`grep ">>>>>>>> pass:1" clog`
sudo ${CLIENT_BIN} -l e -q 50 -n 100 -x 32 -E >> stdlog
result=`grep ">>>>>>>> pass:1" stdlog`
errlog=`grep_err_log`
if [ -z "$errlog" ] && [ "$result" != "" ]; then
echo ">>>>>>>> pass:1"
Expand All @@ -1358,6 +1360,7 @@ else
case_print_result "massive_requests_with_massive_header" "fail"
fi

sudo rm -rf clog slog stdlog test_session xqc_token tp_localhost
killall test_server 2> /dev/null
${SERVER_BIN} -l d -e -b > /dev/null &
sleep 1
Expand Down

0 comments on commit 7ba7e92

Please sign in to comment.