MINOR: cli: handle EOS/ERROR first
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Jun 2025 14:29:07 +0000 (16:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Jun 2025 06:04:42 +0000 (08:04 +0200)
commitf601dc408324368e8f5978c24cfc99093a3a8c60
treefc488e3d4a3867961c6a44754414ffb86236d145
parent24953fff90f9d04b684859e8134cba3c43653ea1
MINOR: cli: handle EOS/ERROR first

It is not especially a bug fixed. But APPCTX_FL_EOS and APPCTX_FL_ERROR
flags must be handled first. These flags are set by the applet itself and
should mark the end of all processing. So there is not reason to get the
output buffer in first place.

This patch could be backported as far as 3.0.

(cherry picked from commit fb7665552668df368bbc85ef56beca11c356f53a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9a874dc54c3a6eb061f19d0a65e882d17d4b1a3e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a1246d92eeeb50f6b10349fb6848e9cead969c0e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/cli.c