commit | 419085656b35f4f2211b13948364b3359ac79c01 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Nov 24 16:23:38 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 24 16:59:28 2016 +0100 |
tree | ef4f97133fd99cb2689c09a6038b2ce24c959346 | |
parent | 3b6e547be8e3177d6463cdd1b2df05da9959db8b [diff] |
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.