]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: proxy: add PR_CAP_LB for dynamically added backend
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2026 07:25:13 +0000 (09:25 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2026 07:34:33 +0000 (09:34 +0200)
commit2de728173d658c98ca031ece62a0021c5dd93840
tree6cbdc0e6c62af3b37cbd99fa1a1f4eb74e8eec1b
parent5129223edcd4a011c3219434cda7501ad2f52405
BUG/MINOR: proxy: add PR_CAP_LB for dynamically added backend

When a new backend is added at runtime via the CLI, ensures its cap
contains PR_CAP_LB along with already set PR_CAP_BE.

The purpose of this cap is to flag a proxy with "load-balancing
capabilities". In fact this is a loose meaning which could be understand
in several manners. Currently, this cap is reserved for frontend,
backend and listen instances from the configuration file explicitely
created by users, by contrast to internal proxies. Thus, dynamically
added backends also enter in this definition.

The impact of this bug is limited as PR_CAP_LB usage is only used for
checking the compatibility of a server with the proxy mode. However,
this may change in the future so this change is mandatory.

This must be backported up to 3.4.
src/proxy.c