]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stconn: Always declare the SC created from healthchecks as a back SC
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Mar 2026 13:24:52 +0000 (15:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Mar 2026 13:47:36 +0000 (15:47 +0200)
commit5280130343f893d890fff3ce210e1a26a7e5c440
tree289e3fdc0a284c17dc93fab04e71affeaeea8cdd
parentd4eee1f206f9b609f2157eedfd0b2a031daa6aea
BUG/MINOR: stconn: Always declare the SC created from healthchecks as a back SC

The SC created from a healthcheck is always a back SC. But SC_FL_ISBACK
flags was missing. Instead of passing it when sc_new_from_check() is called,
the function was simplified to set SC_FL_ISBACK flag systematically when a
SC is created from a healthcheck.

This patch should be backported as far as 2.6.
include/haproxy/stconn.h
src/check.c
src/stconn.c