]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: cli: Use a custom .snd_buf function to only copy the current command
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Feb 2024 07:47:38 +0000 (08:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Mar 2024 16:32:55 +0000 (17:32 +0100)
commit87426e82ec68c95c8c1ab76e71f2f42761dfe95d
tree7257c0b8126c5aaa01592af90b4491345017b626
parent838fb54de6894736e028745ea7eba4e117dde838
MAJOR: cli: Use a custom .snd_buf function to only copy the current command

The CLI applet is now using its own snd_buf callback function. Instead of
copying as most output data as possible, only one command is copied at a
time.

To do so, a new state CLI_ST_PARSEREQ is added for the CLI applet. In this
state, the CLI I/O handle knows a full command was copied into its input
buffer and it must parse this command to evaluate it.
include/haproxy/cli-t.h
src/cli.c