From: Willy Tarreau Date: Wed, 17 Jan 2024 16:21:29 +0000 (+0100) Subject: MINOR: mux-h2: implement MUX_CTL_GET_GLITCHES X-Git-Tag: v3.0-dev2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2b44fd73007079037ff833522d00f80fe0fddba;p=thirdparty%2Fhaproxy.git MINOR: mux-h2: implement MUX_CTL_GET_GLITCHES This reports the number of glitches on a connection. --- 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; }