From e278b8db100fe3a3afe8111af02b7596a86bca0d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 13 Oct 2026 08:40:28 +0200 Subject: [PATCH] REGTESTS: http-messaging: Fix http_fail_cnt_body to succeed with small timeouts http_fail_cnt_body.vtc script was failing when small timeouts were used. The script tries to detect client or server aborts during payload forwarding on the other side. Because "http-no-delay" option was not set, a 200ms delay could be observed to forward the server response. So with small timeouts, the server timeout was hit before the client abort. It is now fixed. In addition the delay before emitting CLI commands was removed. This patch should be backported as far as 2.8. --- reg-tests/http-messaging/http_fail_cnt_body.vtc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reg-tests/http-messaging/http_fail_cnt_body.vtc b/reg-tests/http-messaging/http_fail_cnt_body.vtc index aa2501247..cb6847671 100644 --- a/reg-tests/http-messaging/http_fail_cnt_body.vtc +++ b/reg-tests/http-messaging/http_fail_cnt_body.vtc @@ -36,6 +36,7 @@ haproxy h1 -conf { timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" timeout client "${HAPROXY_TEST_TIMEOUT-5s}" timeout server "${HAPROXY_TEST_TIMEOUT-5s}" + option http-no-delay backend st stick-table type string size 10 store http_fail_cnt @@ -70,9 +71,6 @@ client c2 -connect ${h1_fe_sock} { barrier b1 sync } -run -# let the second stream see the client close -delay 0.5 - haproxy h1 -cli { send "show table st" expect ~ "key=/srv .*http_fail_cnt=1\n" -- 2.47.3