]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: pin one thread in the connection address test
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 03:28:56 +0000 (03:28 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commit498a31194866103932339dc2e93c2ebbd6dea5e6
treedebd04a41c0b6604d28de5d08ac322b2230aaa56
parent7f8270c20fbff8931fede4afd2f304397f8aa779
REGTESTS: sample_fetches: pin one thread in the connection address test

The test asserted that dst_conn reports exactly one connection, which
holds when it runs alone but not when the reg-tests are run in parallel
on a loaded machine: it was reported failing with a value of 8.

The extra connections are not real. With several threads accepting in
parallel, the process ends up reporting current connections which were
never established: after the only client has left, "show info" reports
a non-zero CurrConns while CumConns has only counted the connections
which really happened, and "show stat" shows the same discrepancy
between scur and stot for the frontend. Forcing nbthread to 1 makes the
counters exact again, which is what this test needs since it checks the
address fetches, not the connection accounting.
reg-tests/sample_fetches/conn_addresses.vtc