]> git.kaiwu.me - haproxy.git/commit
REGTESTS: connection: do not race with the reset in the expect-proxy test
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 04:14:57 +0000 (04:14 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commite84a74adc1ee2571f1fd5dfae23f6eb4caddfc4b
tree9990cf9fc19c788579209fd69d5b7e7d9b08a34d
parenta946b58c693a6dfded519d4ef314531febcf0369
REGTESTS: connection: do not race with the reset in the expect-proxy test

The client which sends a malformed PROXY header also sent a request
behind it. The connection is reset as soon as the header line is
complete, so on a build where the reset comes back fast enough the
write of the request fails with ECONNRESET instead of succeeding, and
the test fails. Nothing needs to be sent after the bad header.
reg-tests/connection/expect_proxy.vtc