REGTESTS: Never reuse server connection in http-messaging/truncated.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Oct 2024 12:38:18 +0000 (14:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Oct 2024 15:22:02 +0000 (17:22 +0200)
A "Connection: close" header is added to responses to avoid any connection
reuse. This should avoid errors on the client side.

(cherry picked from commit e7be13da87f8ec00470ef60bb43b85f0480fd85d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

reg-tests/http-messaging/truncated.vtc

index 7f262d7..e674b87 100644 (file)
@@ -7,7 +7,9 @@ server s1 {
        txresp \
          -status 200 \
          -nolen \
-         -hdr "Transfer-encoding: chunked"
+         -hdr "Transfer-encoding: chunked" \
+         -hdr "Connection: close"
+
        #  -bodylen 16300
        #chunkedlen 16300
        #delay 0.05