]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux: Add a ctl parameter to get the exit status of the multiplexers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 12:59:17 +0000 (14:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commit4c8ad8423268a059e112cad5080d3061bb8e72f2
treee844b70109302f0c0f0093a1751aae6c06441b2b
parent7d0c19e82d169ad2a6377f6ba37aeca3d50828f1
MINOR: mux: Add a ctl parameter to get the exit status of the multiplexers

The ctl param MUX_EXIT_STATUS can be request to get the exit status of a
multiplexer. For instance, it may be an HTTP status code or an H2 error. For
now, 0 is always returned. When the mux h1 will be able to return HTTP
errors itself, this ctl param will be used to get the HTTP status code from
the logs.

the mux_exit_status enum has been created to map internal mux exist status
to generic one. Thus there is 5 possible status for now: success, invalid
error, timeout error, internal error and unknown.
include/haproxy/connection-t.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c