]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: fix the race conditions in secure_memcmp.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Mar 2022 10:03:00 +0000 (11:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Mar 2022 10:24:31 +0000 (11:24 +0100)
In the same way than for normalize_uri.vtc, a "Connection: close" header is
added to all responses to avoid any connection reuse. This should avoid any
"HTTP header incomplete" errors.

reg-tests/converter/secure_memcmp.vtc

index 67a7b7def81e7bdc57631a265f2bb922d9fc7eaf..6ff74e6e45a1cd327edd88d480320de1a7fd7573 100644 (file)
@@ -7,12 +7,12 @@ feature ignore_unknown_macro
 
 server s1 {
        rxreq
-       txresp
+       txresp -hdr "Connection: close"
 } -repeat 4 -start
 
 server s2 {
        rxreq
-       txresp
+       txresp -hdr "Connection: close"
 } -repeat 7 -start
 
 haproxy h1 -conf {