]> git.kaiwu.me - haproxy.git/commit
MEDIUM: proxy: add lock for global accesses during proxy free
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 07:51:18 +0000 (08:51 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 13:09:25 +0000 (14:09 +0100)
commitf58b2698ce94a2f11bef9ed9ab50941dd6f3ec10
tree8fdc85622d29e413c2f3550c0a4cbf9f350a5c5c
parenta7d1c59a92713739277c0a322feb77c7b30f690b
MEDIUM: proxy: add lock for global accesses during proxy free

Define a new lock with label PROXIES_DEL_LOCK. Its purpose is to protect
operations performed on global lists or trees while a proxy is freed.

Currently, this lock is unneeded as proxies are only freed on
single-thread init or deinit. However, with the incoming dynamic backend
deletion, this operation will be also performed at runtime, outside of
thread isolation.
include/haproxy/thread-t.h
src/proxy.c
src/thread.c