]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: cli: simplify the request parser a little bit
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 15:23:38 +0000 (16:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 15:59:28 +0000 (16:59 +0100)
commit419085656b35f4f2211b13948364b3359ac79c01
treeef4f97133fd99cb2689c09a6038b2ce24c959346
parent3b6e547be8e3177d6463cdd1b2df05da9959db8b
CLEANUP: cli: simplify the request parser a little bit

stats_sock_parse_request() was renamed cli_parse_request(). It now takes
an appctx instead of a stream interface, and presets ->st2 to 0 so that
most handlers will not have to set it anymore. The io_handler is set by
default to the keyword's IO handler so that the parser can simply change
it without having to rewrite the new state.
src/cli.c