From: Amaury Denoyelle Date: Wed, 2 Dec 2026 15:06:23 +0000 (+0100) Subject: CLEANUP: h3: reduce header dependency list X-Git-Url: https://git.kaiwu.me/web/http/static/%7B@url%7D?a=commitdiff_plain;h=245dc79482b2b028814a0343b3ee6e4e8bb97f01;p=haproxy.git CLEANUP: h3: reduce header dependency list Remove unneeded header include statements in H3 module. In particular, quic_conn.h is no longer needed: this requires replacing the qc_counters() call with dedicated code. --- diff --git a/src/h3.c b/src/h3.c index 35785db64..a7d370827 100644 --- a/src/h3.c +++ b/src/h3.c @@ -16,27 +16,27 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include #include #include #include #include +#include #include -#include #include #include #include #include #include #include -#include #include #include #include #include #include -#include #include #include #include @@ -3903,15 +3903,19 @@ static int h3_init(struct qcc *qcc) h3c->flags = 0; h3c->id_shut_l = 0; h3c->id_shut_r = 0; + h3c->prx_counters = NULL; h3c->hdng_prf = NULL; qcc->ctx = h3c; - h3c->prx_counters = qc_counters(qcc->conn->target, &h3_stats_module); - if (srv) + if (srv) { + h3c->prx_counters = EXTRA_COUNTERS_GET(srv->proxy->extra_counters_be, &h3_stats_module); h3c->hdng_prf = srv->hdng_prf; - else if (li) + } + else if (li) { + h3c->prx_counters = EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe, &h3_stats_module); h3c->hdng_prf = li->bind_conf->hdng_prf; + } /* "auto": untrusted for non-local otherwise trusted */ if (!h3c->hdng_prf) {