]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: fix h2_desync_attacks to wait for the response
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Oct 2025 14:34:51 +0000 (16:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Oct 2025 08:29:41 +0000 (10:29 +0200)
Tests with abortonclose showed a bug with this test where the client
would close the stream immediately after sending the request, without
waiting for the response, causing some random failures on the server
side.

reg-tests/http-messaging/h2_desync_attacks.vtc

index f77538b0733850e5a26fb2e6192b1a25f2710f52..d5bf33bd6be832474d30cf939ad6783f3713c965 100644 (file)
@@ -169,6 +169,8 @@ client c6-host-authority -connect ${hap_fe3_sock} {
                  -url "/" \
                  -hdr ":authority" "hostname" \
                  -hdr "host" "other_host"
+               rxhdrs
+               expect resp.status == 200
        } -run
 } -run