]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2: implement MUX_CTL_GET_GLITCHES
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jan 2024 16:21:29 +0000 (17:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jan 2024 16:21:44 +0000 (17:21 +0100)
This reports the number of glitches on a connection.

src/mux_h2.c

index c4990373542e01569e93ad0c98f1f1306cfc2639..a38d75b901efb062d8645fde74db4ea3a70981be 100644 (file)
@@ -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;
        }