From: Christopher Faulet Date: Tue, 13 Oct 2026 06:40:28 +0000 (+0200) Subject: REGTESTS: http-messaging: Fix http_fail_cnt_body to succeed with small timeouts X-Git-Tag: v3.5-dev9~27 X-Git-Url: https://git.kaiwu.me/$%7BISSUES%7D/static/gitweb.js?a=commitdiff_plain;h=e278b8db100fe3a3afe8111af02b7596a86bca0d;p=haproxy.git 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. --- 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"