]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: fix the race conditions in json_query.vtc
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jan 2023 13:54:31 +0000 (14:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Jan 2023 14:22:22 +0000 (15:22 +0100)
A "Connection: close" header is added to responses to avoid any connection
reuse. This should avoid any "HTTP header incomplete" errors.

reg-tests/converter/json_query.vtc

index 1b195a77912eb634e2675289d21f6e6ab4a08ed4..f78c393f0741bdafee9da56e7afe4cf55987615b 100644 (file)
@@ -5,7 +5,7 @@ feature ignore_unknown_macro
 
 server s1 {
        rxreq
-       txresp
+       txresp -hdr "Connection: close"
 } -repeat 8 -start
 
 haproxy h1 -conf {