]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: make the /c5 abort land during the retries
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 22:50:12 +0000 (22:50 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit506391f874075c03f3095742ed1373104e9d8e86
treebb2d22d5ccebc882cd89315cea015a01542a1870
parent26dd5a488038a76e3c398d7d67542bfd6ffbc88b
REGTESTS: http-messaging: make the /c5 abort land during the retries

The previous attempt at making this case robust, which raised the
connect timeout so that the client abort is noticed before the retries
are over, was not enough: the client closes immediately after its
request, so under load the close is sometimes seen while the request is
still being parsed, and the transaction is then logged as "CH--" with a
400 instead of the expected "CC--".

The client now waits fifty milliseconds before closing, which leaves
haproxy the time to read the request and to start connecting, and the
raised connect timeout gives the abort a full second to be noticed.
Twenty runs in parallel with the machine loaded pass.
reg-tests/http-messaging/http_abortonclose.vtc