]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: add a new mux_ctl to report number of connection glitches
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jan 2024 16:20:30 +0000 (17:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jan 2024 16:21:44 +0000 (17:21 +0100)
MUX_CTL_GET_GLITCHES will report the non-negative number of clitches
observed on a connection, or -1 if not supported.

include/haproxy/connection-t.h

index b8753c8210a727ae94e907638b35cd20bfcd78b3..2c0fd2e59262ade40d3c7204a505807e36b85048 100644 (file)
@@ -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() */