Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[=] fix massive header casetest error #460

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading