]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: do not race with the server close in proxy_state
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 21:15:20 +0000 (21:15 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit212afc516352f15ff30836f5f2587b2a8da356f3
tree97281e9d2464b8b79eef456d6cf6d6bca4f393af
parentf11dd2444237a073b55f82ed99c816548002ba8e
REGTESTS: sample_fetches: do not race with the server close in proxy_state

A full run of the suite caught srv_conn() reporting zero where the test
expects one. The server closed its connection as soon as it had
answered, and when that close reached haproxy before the response rules
were evaluated, the server connection was already released and the
counter had gone back to zero.

The server now holds its connection until the client has read the
response, which is necessarily after the rules have run.
reg-tests/sample_fetches/proxy_state.vtc