]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: Don't warn about a too big command for incomplete commands
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Apr 2024 05:41:17 +0000 (07:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Apr 2024 09:49:13 +0000 (11:49 +0200)
commit70251a2aeb5930f3fc25aadf979d5ce5007d0f9d
tree71eaaba34011ce73ec067a4f59a65fd67071ad73
parent0046922aed98d620f06f4eafa508829363404154
BUG/MINOR: cli: Don't warn about a too big command for incomplete commands

When a command is too big to fit in a buffer, a error is returned before
closing. However, the error is also returned if the command is small enough
but incomplete. It happens on abort. In this case, the error must not be
reported. The regression was introduced when a dedicated sn_buf callbac
function was added.

To fix the issue, both cases are now handled separately.

No backport needed.
src/cli.c