MINOR: mux: Add a new method to get informations about a mux.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 25 Oct 2019 14:19:26 +0000 (16:19 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 29 Oct 2019 13:15:20 +0000 (14:15 +0100)
commit9b8e11e691619b9cc0336f57bcdfacb015864a97
treea70894698a588e9f7db3c2ad701fade0367ff1b7
parent2254b8ef4ad377a8723df2754120df1016cf22ee
MINOR: mux: Add a new method to get informations about a mux.

Add a new method, ctl(), to muxes. It uses a "enum mux_ctl_type" to
let it know which information we're asking for, and can output it either
directly by returning the expected value, or by using an optional argument.
"output" argument.
Right now, the only known mux_ctl_type is MUX_STATUS, that will return 0 if
the mux is not ready, or MUX_STATUS_READY if the mux is ready.

We probably want to backport this to 1.9 and 2.0.
include/types/connection.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c