]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: add a list of orphaned defaults sections
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 13:59:04 +0000 (15:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 13:59:04 +0000 (15:59 +0200)
commitc8b813771d21b3a96b5be4ae5ff514a266f99a85
tree4cd39743f22a692aafafe1ed3915296a4c264ac8
parentcb4c236facd3b859a946f3c1bbfed691b63e3463
MINOR: proxy: add a list of orphaned defaults sections

We'll soon delete unreferenced and duplicated named defaults sections
from the list of proxies. The problem with this is that this list (in
fact a name-based tree) is used to release all of them at the end. Let's
add a list of orphaned defaults sections, typically those containing
"http-check send" statements or various other rules, and that are
implicitly inherited by a proxy hence have a non-zero refcount while
also having a name. These now makes it possible to remove them from
the name index while still keeping their memory around for the lifetime
of the process, and cleaning it at the end.
include/haproxy/proxy.h
src/proxy.c