]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: converters: use connection: close in the has_ctl() test
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2026 09:17:23 +0000 (11:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2026 09:19:12 +0000 (11:19 +0200)
The reg-test used to test has_ctl() introduced by commit 33374957db
("MINOR: sample: add new converter has_ctl() to detect control characters")
is flaky due to the server not using "connection: close", so under load
it randomly shows "HTTP header incomplete". Let's add the close like in
many other similar tests involving server reuse.

This should be backported wherever the converter above is backported.

reg-tests/converter/has_ctl.vtc

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