]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: cli: Handle applet shutdown when waiting for a command line
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 16:54:32 +0000 (18:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Apr 2025 06:47:05 +0000 (08:47 +0200)
commit101cc4f3340a52abf6686460853c91ae4058116d
tree261425bc99956bce3b868e5081557d88e4cc4b50
parent27b732a6619bb64bf92da2f1a442702dad912ec2
BUG/MEDIUM: cli: Handle applet shutdown when waiting for a command line

When the CLI applet was refactord in the commit 20ec1de21 ("MAJOR: cli:
Refacor parsing and execution of pipelined commands"), a regression was
introduced. The applet shutdown was not longer handled when the applet was
waiting for the next command line. It is especially visible when a client
timeout occurred because the client connexion is no longer closed.

To fix the issue, the test on the SE_FL_SHW flag was reintroduced in
CLI_ST_PARSE_CMDLINE state, but only is there is no pending input data.

It is a 3.2-specific issue. No backport needed.
src/cli.c