BUG/MINOR: applet: Always expect data when CLI is waiting for a new command
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 07:17:33 +0000 (09:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 07:36:19 +0000 (09:36 +0200)
commit2f1e0a0a46f34ef622c705c95c105e744405c3b2
tree9b172d77a1e28c6856ca0253375ab5600b1dfa06
parent8073094bf1b0fb7e1ed8c6a0276e720b31d04a82
BUG/MINOR: applet: Always expect data when CLI is waiting for a new command

There is a mechanism for applets to disable the read timeout on the opposite
side if it is now waiting for any data. Of course, there is also a way to
re-activate it. But, it must excplicitly be handle by applets.

For the CLI, some commands may state no input data are expected. So we must
be sure to reset its state when the applet is waiting for a new command. For
now, it is not a bug because no CLI command uses this mechanism.

This patch must be backported to 2.8.
src/cli.c