]> git.kaiwu.me - haproxy.git/commit
MINOR: servers: Introduce src_manage_queues()
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 5 Feb 2026 09:14:41 +0000 (10:14 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 2 Mar 2026 12:46:17 +0000 (13:46 +0100)
commitead5f2747720341ad51409888863720b26f0c32d
tree636f34c111faf8e8512c1c06471f491d36a6973e
parent9d749374ea7283f2757f9154a5ec26852f07e3fa
MINOR: servers: Introduce src_manage_queues()

Instead of having a common pattern of
if (may_dequeue_tasks())
process_srv_queue()
introduce an inline function to do that, and use it where appropriate
(mostly everywhere where the pattern was used).
Later on this function will be responsible for figuring out if, after
the queue has been processed, the server is full or not.
include/haproxy/server.h
include/haproxy/stream.h
src/backend.c
src/cli.c
src/server.c
src/stream.c