]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: spoe: force "always" reuse policy when converting SPOP backend
authorMarcWort <113890636+MarcWort@users.noreply.github.com>
Mon, 30 Nov 2026 07:37:21 +0000 (08:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Nov 2026 15:03:42 +0000 (16:03 +0100)
commit58dc79b5e8dd230d082b8cb6747e3a7b68e17675
treed586b119b0aeb78a4755b938751ae61d1521ed81
parentc065792c0f27880896aeb5a6d8211a174f3cd54c
BUG/MINOR: spoe: force "always" reuse policy when converting SPOP backend

When an SPOE agent uses a backend declared in "mode tcp", the backend is
automatically converted to "mode spop" during configuration validation.
The conversion is done in spoe_check(), which is called from flt_check(),
i.e. after proxy_finalize() has already normalized the mode-dependent
options of that backend. Seeing the backend was still in TCP mode at the
time, its http-reuse policy was stripped down to "never", while explicit
"mode spop" backends are unconditionally forced to "always".

Fix this by forcing PR_O_REUSE_ALWS (after clearing the reuse bits) when
the backend is converted to SPOP mode, which is exactly the policy an
explicit "mode spop" backend ends up with in proxy_finalize().

This patch should fix the issue #3611. It should to be backported as far as
3.2.
src/flt_spoe.c