From: Amaury Denoyelle Date: Mon, 18 Dec 2023 18:01:53 +0000 (+0100) Subject: MINOR: h3: remove quic_conn only reference X-Git-Tag: v3.0-dev1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2540b2f720ca3fe909a56ef3ab532127a90b421;p=thirdparty%2Fhaproxy.git MINOR: h3: remove quic_conn only reference H3 uses a direct reference to quic_conn to access the listener instance. This can be replaced by using qcc->conn->target. This allows to remove quic_conn-t.h header include from it. --- diff --git a/src/h3.c b/src/h3.c index 0616b764ca..24db5e96cd 100644 --- a/src/h3.c +++ b/src/h3.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -2177,7 +2176,7 @@ static int h3_send_goaway(struct h3c *h3c) static int h3_init(struct qcc *qcc) { struct h3c *h3c; - struct quic_conn *qc = qcc->conn->handle.qc; + const struct listener *li = __objt_listener(qcc->conn->target); h3c = pool_alloc(pool_head_h3c); if (!h3c) @@ -2190,9 +2189,8 @@ static int h3_init(struct qcc *qcc) h3c->id_goaway = 0; qcc->ctx = h3c; - /* TODO cleanup only ref to quic_conn */ h3c->prx_counters = - EXTRA_COUNTERS_GET(qc->li->bind_conf->frontend->extra_counters_fe, + EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe, &h3_stats_module); LIST_INIT(&h3c->buf_wait.list);