From: Willy Tarreau Date: Wed, 17 Jan 2024 16:20:30 +0000 (+0100) Subject: MINOR: connection: add a new mux_ctl to report number of connection glitches X-Git-Tag: v3.0-dev2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d6af6a0ff0ed8c4d75da6e8d0622266d43512d;p=thirdparty%2Fhaproxy.git MINOR: connection: add a new mux_ctl to report number of connection glitches MUX_CTL_GET_GLITCHES will report the non-negative number of clitches observed on a connection, or -1 if not supported. --- diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index b8753c8210..2c0fd2e592 100644 --- a/include/haproxy/connection-t.h +++ b/include/haproxy/connection-t.h @@ -337,6 +337,7 @@ enum mux_ctl_type { MUX_CTL_EXIT_STATUS, /* Expects an int as output, sets the mux exist/error/http status, if known or 0 */ MUX_CTL_REVERSE_CONN, /* Notify about an active reverse connection accepted. */ MUX_CTL_SUBS_RECV, /* Notify the mux it must wait for read events again */ + MUX_CTL_GET_GLITCHES, /* returns number of glitches on the connection */ }; /* sctl command used by mux->sctl() */