]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: server/checks: Support healtcheck keyword on default-server lines
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Jun 2026 19:53:31 +0000 (21:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Jun 2026 19:53:32 +0000 (21:53 +0200)
commitf7bc8246ee3839b49d8c7a623b93b5a2ffb5fa0e
tree852af950be58589ab77ced2963735075592845d4
parent3daf4498f32429497b091f8c1a47a40be9bcffa8
BUG/MEDIUM: server/checks: Support healtcheck keyword on default-server lines

The healthcheck keyword could be parsed on default-server lines but not
copied during server initialization, making it ineffective. But there is
also a true issue by setting it on a default-server. The pseudo server used
to parse the default-server line is not initialized via the new_server()
function, as regular servers. So there is no tcpcheck information inherited
from the proxy. We must take care of that when the "healthcheck" keyword is
parsed to avoid crashes.

This patch must be backported to 3.4.
src/server.c
src/tcpcheck.c