From a3d6af6a0ff0ed8c4d75da6e8d0622266d43512d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 17 Jan 2024 17:20:30 +0100 Subject: [PATCH] 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. --- include/haproxy/connection-t.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index b8753c821..2c0fd2e59 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() */