]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: No longer check SC for shutdown to interrupt wait command
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Feb 2024 21:29:06 +0000 (22:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 13:22:36 +0000 (14:22 +0100)
commit5895fa8ce05001b58b1804927ef2eef46c1e459e
tree8b74f5aacef4b42f7db9b6f65cd180bf9c9e1028
parent4a78f766ff758952479bfc2648c946263e0c7521
MINOR: cli: No longer check SC for shutdown to interrupt wait command

Thanks to the previous patch ("MEDIUM: applet: Add notion of shutdown for
write for applets"), it is no longer necessary to check SC flags to detect
shutdowns to interrupt the wait command. It is possible to remove this ugly
workaround. In addition, we only test the SE for shutdown because end of
stream and error are already checked by the CLI I/O handler. And it is no
longer necessary to remove output data from the channel's buffer because
shutdown are not reported if there are remaining outgoing data.

Of course, if the "wait" command is backported, the commit above and this
one must be backported too.
src/cli.c