]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: make sure to always print a pending message after release()
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 16:22:41 +0000 (17:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 17:22:35 +0000 (18:22 +0100)
commit3d91ffdaff471e95bfd6eb6f9a98eaa4e035aa3d
treef23b9bb604370734dae418e2b154421dea121c98
parent6219a58d285060b1eaa33c4c56f89a37a33230a4
MINOR: cli: make sure to always print a pending message after release()

If a release handler produces a final message, it's currently left
pending in the CLI context and needs another I/O event to be dumped
because immediately after calling ->release, we check for states
OUTPUT and above and we wait until more data arrives.

This patch adds continue statement to go back to the loop immediately
after leaving the release handler in order to attempt to emit the
output message.

At this point it's not sure whether any release handlers are producing
messages, so it's probably not needed to backport this.
src/cli.c