]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: Report inbuf is no longer full when a line is consumed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Aug 2025 13:50:37 +0000 (15:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Aug 2025 14:01:50 +0000 (16:01 +0200)
commitc6c2ef1f1189a39fdea429f2792c3bd0a1679a08
tree978a4d2740dc2e0fd4c13a98e34ef1c522a29f2f
parentdc6e8dde231990d6f999c64117a301fc66a7256c
BUG/MEDIUM: cli: Report inbuf is no longer full when a line is consumed

When the command line parsing was refactored (20ec1de21 "MAJOR: cli: Refacor
parsing and execution of pipelined commands"), a regression was introduced.
When input data are consumed, information about the applet's input buffer
are no longer updated accordingly to state it is no longer full. So it is
possible to freeze the CLI applet. And a spinning loop may be encountered if
a client shutdown is detected in this state.

The fix is obivous. When data are consumed from the applet's input buffer,
APPCTX_FL_INBLK_FULL flag is removed to notify the input buffer is no longer
full and more data can be sent to the CLI applet.

This patch should fix the issue #3064. It must be backported to 3.2.
src/cli.c