]> git.kaiwu.me - haproxy.git/commit
MEDIUM: proxy: add lock for global accesses during default free
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 08:05:19 +0000 (09:05 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 13:10:46 +0000 (14:10 +0100)
commitf64aa036d8c61101b0828073c6e9148787506d6b
tree727fce1b98c6ac4553e3e8f45aed0174ec04b320
parentf58b2698ce94a2f11bef9ed9ab50941dd6f3ec10
MEDIUM: proxy: add lock for global accesses during default free

This patch is similar to the previous one, but this time it deals with
functions related to defaults proxies instances. Lock PROXIES_DEL_LOCK
is used to protect accesses on global collections.

This patch will be necessary to implement dynamic backend deletion, even
if defaults won't be use as direct target of a "del backend" CLI.
However, a backend may have a reference on a default instance. When the
backend is freed, this references is released, which can in turn cause
the freeing of the default proxy instance. All of this will occur at
runtime, outside of thread isolation.
src/proxy.c