From 32831b42e1e94db2f264e8bda8ab82debe2a1156 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Thu, 11 Jan 2024 19:17:56 +0100 Subject: [PATCH] MINOR: h3-be: Correctly retrieve h3 counters This is done using qc_counters() function which supports also QUIC servers. --- src/h3.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/h3.c b/src/h3.c index 636dfac8a..8304a6417 100644 --- a/src/h3.c +++ b/src/h3.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -2513,7 +2514,6 @@ static int h3_send_goaway(struct h3c *h3c) static int h3_init(struct qcc *qcc) { struct h3c *h3c; - const struct listener *li = __objt_listener(qcc->conn->target); TRACE_ENTER(H3_EV_H3C_NEW, qcc->conn); @@ -2530,9 +2530,7 @@ static int h3_init(struct qcc *qcc) h3c->id_goaway = 0; qcc->ctx = h3c; - h3c->prx_counters = - EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe, - &h3_stats_module); + h3c->prx_counters = qc_counters(qcc->conn->target, &h3_stats_module); LIST_INIT(&h3c->buf_wait.list); TRACE_LEAVE(H3_EV_H3C_NEW, qcc->conn);