]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: Never reuse server connection in server/cli_delete_dynamic_server.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:55:00 +0000 (10:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:56:10 +0000 (10:56 +0200)
A "Connection: close" header is added to responses to avoid any connection
reuse. This should avoid errors on the client side.

reg-tests/server/cli_delete_dynamic_server.vtc

index cc3fa497d4099cf6d6f8dc3b77f74d13ba5cf67b..7c52085e3e8664f79dc04910726ebbcf0418d737 100644 (file)
@@ -8,14 +8,14 @@ feature ignore_unknown_macro
 # static server
 server s1 -repeat 3 {
        rxreq
-       txresp \
+       txresp -hdr "Connection: close" \
          -body "resp from s1"
 } -start
 
 # use as a dynamic server, added then deleted via CLI
 server s2 -repeat 3 {
        rxreq
-       txresp \
+       txresp -hdr "Connection: close" \
          -body "resp from s2"
 } -start