]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: Don't consume data if outbuf is full or not available
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Jun 2025 13:48:04 +0000 (15:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Jun 2025 14:47:59 +0000 (16:47 +0200)
commit396f0252bf3a400c9dbfdaf730e994bb44f198dd
treec28727c4fef81527a2ca967c09b1328b1f84c7c0
parent96badf86a2122b8e0cc28c0a01b30d67d897940e
BUG/MEDIUM: cli: Don't consume data if outbuf is full or not available

The output buffer must be available to process a command, at least to be
able to emit error messages. When this buffer is full or cannot be
allocated, we must wait. In that case, we must take care to notify the SE
will not consume input data. It is important to avoid wakeup in loop,
especially when the client aborts.

When the output buffer is available again and no longer full, and the CLI
applet is waiting for a command line, it must notify it will consume input
data.

This patch must be backported as far as 3.0.
src/cli.c