]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: extcheck: fill in the server's UNIX socket address when known
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Apr 2022 17:51:02 +0000 (19:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Apr 2022 17:56:32 +0000 (19:56 +0200)
commitcef08c20c72b02151a0b64c98cf40a965ce29218
tree49cd2f1b4df803cedf392c9eddb680149983a2eb
parentc7edc9880a7c23d9699e92d9fe89ff1a66df2065
MINOR: extcheck: fill in the server's UNIX socket address when known

While it's often a pain to try to figure a UNIX socket address, the
server ones are reliable and may be emitted in the check provided
they are retrieved in time. We cannot rely on addr_to_str() because
it only reports "unix" since it may be used to log client addresses
or listener addresses (which are renamed).

The address length was extended to 256 chars to deal with long paths
as previously it was limited to INET6_ADDRSTRLEN+1.

This addresses github issue #101. There's no point backporting this,
external checks are almost never used.
src/extcheck.c