]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tcpcheck: mention that we're a bit far for a sync errno
authorWilly Tarreau <w@1wt.eu>
Mon, 18 May 2026 15:18:34 +0000 (17:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 May 2026 16:47:41 +0000 (18:47 +0200)
commitbbc41785d9099815479808b2e49d8dccdb067815
tree46b2c1f0cd24fe02088d3a2b6d0ae2503ae7c8c5
parent3b825d2745574ae4430ff385f5ae801ceec784e1
CLEANUP: tcpcheck: mention that we're a bit far for a sync errno

The collection of errno in tcpcheck_eval_connect() and tcpcheck_main()
is quite far from the production location, and the risk of having a
zero errno is definitely not null. Tests show that this works, so
better not try to fix something not broken, but at least place a
comment there indicating that it's not necessarily super-reliable.
This would need to be revisited the day we finally store errno in
the connection.
src/tcpcheck.c