BUG/MINOR: checks: Report a socket error before any connection attempt
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Oct 2020 10:10:49 +0000 (11:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2020 09:23:00 +0000 (10:23 +0100)
commit5e29376efb5009af731407adb4051f300786b620
tree2de2bf8d856289e8e3ef557e6ce4f4db77bb4a98
parentd5bd824b81cda4c02e967b05af920f455d4b3712
BUG/MINOR: checks: Report a socket error before any connection attempt

When a health-check fails, if no connection attempt was performed, a socket
error must be reported. But this was only done if the connection was not
allocated. It must also be done if there is no control layer. Otherwise, a
L7TOUT will be reported instead.

It is possible to not having a control layer for a connection if the connection
address family is invalid or not defined.

This patch must be backported to 2.2.
src/check.c