diff --git a/include/haproxy/mux_quic.h b/include/haproxy/mux_quic.h index cc5eb1e96..6e497c700 100644 --- a/include/haproxy/mux_quic.h +++ b/include/haproxy/mux_quic.h @@ -12,8 +12,13 @@ #include #include +#define qcc_report_glitch(qcc, inc, ...) ({ \ + COUNT_GLITCH(__VA_ARGS__); \ + _qcc_report_glitch(qcc, inc); \ + }) + void qcc_set_error(struct qcc *qcc, int err, int app); -int qcc_report_glitch(struct qcc *qcc, int inc); +int _qcc_report_glitch(struct qcc *qcc, int inc); struct qcs *qcc_init_stream_local(struct qcc *qcc, int bidi); void qcs_send_metadata(struct qcs *qcs); struct stconn *qcs_attach_sc(struct qcs *qcs, struct buffer *buf, char fin); diff --git a/src/mux_quic.c b/src/mux_quic.c index 84f92c55b..d704403d3 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -718,7 +718,7 @@ void qcc_set_error(struct qcc *qcc, int err, int app) /* Increment glitch counter for connection by steps. If configured * threshold reached, close the connection with an error code. */ -int qcc_report_glitch(struct qcc *qcc, int inc) +int _qcc_report_glitch(struct qcc *qcc, int inc) { const int max = global.tune.quic_frontend_glitches_threshold;