]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: admin: haproxy-reload use explicit socat address type
authorWilliam Lallemand <wlallemand@irq6.net>
Sat, 7 Mar 2026 23:41:36 +0000 (00:41 +0100)
committerWilliam Lallemand <wlallemand@irq6.net>
Sun, 8 Mar 2026 00:33:29 +0000 (01:33 +0100)
commit551e5f5fd46ef6a6196128ec8c91a9ec29124885
tree852fd28fef1356f54069593b49e57416bc7e6b50
parent2a2989bb23b0e6040042384608fa79cfe57520bd
BUG/MINOR: admin: haproxy-reload use explicit socat address type

socat was used with the ${MASTER_SOCKET} variable directly, letting it
auto-detect the network protocol. However, when given a plain filename
that does not point to a UNIX socket, socat would create a file at that
path instead of reporting an error.

To fix this, the address type is now determined explicitly: if
MASTER_SOCKET points to an existing UNIX socket file (checked with -S),
UNIX-CONNECT: is used; if it matches a <host>:<port> pattern, TCP: is
used; otherwise an error is reported. The socat_addr variable is also
properly scoped as local to the reload() function.

Could be backported in 3.3.
admin/cli/haproxy-reload