BUG/MEDIUM: cli: Eat output data when waiting for appctx shutdown
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Apr 2023 16:07:51 +0000 (18:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 05:43:26 +0000 (07:43 +0200)
commit1fb97e47f01ec88e7c9925fc7c94dd2d8bb8a364
tree4a64fb6f23a4fba954ae542387b0c66f99df0445
parent33af99655eed963ca2f091097566c09a96a75e7c
BUG/MEDIUM: cli: Eat output data when waiting for appctx shutdown

When the cli applet is executed while a shut is pending, the remaining
output data must always be consumed. Otherwise, this can prevent the stream
to exit, leading to a spinning loop on the applet.

This patch should fix the issue #2107. It is 2.8-specific. No backport
needed.
src/cli.c