From d2b44fd73007079037ff833522d00f80fe0fddba Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 17 Jan 2024 17:21:29 +0100 Subject: [PATCH] MINOR: mux-h2: implement MUX_CTL_GET_GLITCHES This reports the number of glitches on a connection. --- src/mux_h2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index c499037354..a38d75b901 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4623,6 +4623,9 @@ static int h2_ctl(struct connection *conn, enum mux_ctl_type mux_ctl, void *outp tasklet_wakeup(h2c->wait_event.tasklet); return 0; + case MUX_CTL_GET_GLITCHES: + return h2c->glitches; + default: return -1; }