]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: State the cli have no more data to deliver if it yields
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Nov 2025 08:47:01 +0000 (09:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Nov 2025 09:00:15 +0000 (10:00 +0100)
commit0629ce8f4bb180e6e056276af17d8609ee65f3b5
tree2e2321a15aa9b1930a7b33afbb978a8063cb65cc
parentdfdccbd2af56a9cb165037d106f149cdd4eb8c80
BUG/MEDIUM: cli: State the cli have no more data to deliver if it yields

A regression was introduced in the commit 2d7e3ddd4 ("BUG/MEDIUM: cli: do
not return ACKs one char at a time"). When the CLI is processing a command
line, we no longer send response immediately. It is especially useful for
clients sending a bunch of commands with very short response.

However, in that state, the CLI applet must state it has no more data to
deliver. Otherwise it will be woken up again and again because data are
found in its output buffer with no blocking conditions. In worst cases, if
the command rate is really high, this can trigger the watchdog.

This patch must be backported where the patch above is, so probably as far
as 3.0.
src/cli.c