]> git.kaiwu.me - haproxy.git/commit
MINOR: cli: store active CLI sessions in a global list
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Nov 2026 09:10:34 +0000 (10:10 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Nov 2026 16:15:29 +0000 (17:15 +0100)
commit2367f7a0033d097e50d1a19dabe830f623b7cdb0
treec419d0a3657abc59aa183989267fe222f8105f9f
parent87d37812381e53995ea32988de6dc98c3138edc5
MINOR: cli: store active CLI sessions in a global list

Implement a global list of the currently active CLI sessions. This is
sound as since only one CLI frontend exists per HAProxy instance (via
"stats socket" for a worker, or alternatively a master CLI via -S for a
master process).

Each session is appended in the CLI_ST_INIT state at the beginning of
cli_io_handler() and removed in cli_release_handler().

This will allow to implement new CLI commands which can interact with
other CLI sessions.
include/haproxy/applet-t.h
src/cli.c