]> git.kaiwu.me - haproxy.git/commit
MINOR: proxy: yield during servers purge
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Oct 2026 14:40:58 +0000 (16:40 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2026 09:33:40 +0000 (11:33 +0200)
commit71a914e0ff8440c3f0d17167732c7028afe57724
tree5336c2f3da42e4035c657373494d3ff2fa5b9293
parenta5adffde2c174e5e4d7437f5e0ee43361c3701b4
MINOR: proxy: yield during servers purge

Function proxy_purge_servers() loops through server purge list and tries
to remove them. This is executed under thread isolation for the whole
function duration.

To prevent blocking for too long, yield after 50 servers deleted. The
purge task is immediately requeued but this gives an opportunity for the
other threads to achieve some work.

For now, a static value is applied as the yield limit. It may be useful
to render it configurable if users want to prioritize traffic even more.
src/proxy.c