]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker/cli: fix set severity-output support
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 6 Dec 2023 10:15:01 +0000 (11:15 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 7 Dec 2023 16:37:23 +0000 (17:37 +0100)
commit1c1bb8ef2abeab2dc8e4857ec2fef2b19b472be7
tree634584cf0985a7ae32a940a24c5decdc2daaa062
parent0338778c41a83a3a74a3b53647a29dcc90295237
BUG/MINOR: mworker/cli: fix set severity-output support

"set severity-output" is one of these command that changes the appctx
state so the next commands are affected.

Unfortunately the master CLI works with pipelining and server close
mode, which means the connection between the master and the worker is
closed after each response, so for the next command this is a new appctx
state.

To fix the problem, 2 new flags are added ACCESS_MCLI_SEVERITY_STR and
ACCESS_MCLI_SEVERITY_NB which are used to prefix each command sent to
the worker with the right "set severity-output" command.

This patch fixes issue #2350.

It could be backported as far as 2.6.
include/haproxy/cli-t.h
src/cli.c