mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
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.
This commit is contained in:
parent
71f626e3e2
commit
d2540b2f72
6
src/h3.c
6
src/h3.c
@ -36,7 +36,6 @@
|
|||||||
#include <haproxy/qmux_http.h>
|
#include <haproxy/qmux_http.h>
|
||||||
#include <haproxy/qpack-dec.h>
|
#include <haproxy/qpack-dec.h>
|
||||||
#include <haproxy/qpack-enc.h>
|
#include <haproxy/qpack-enc.h>
|
||||||
#include <haproxy/quic_conn-t.h>
|
|
||||||
#include <haproxy/quic_enc.h>
|
#include <haproxy/quic_enc.h>
|
||||||
#include <haproxy/quic_frame.h>
|
#include <haproxy/quic_frame.h>
|
||||||
#include <haproxy/stats-t.h>
|
#include <haproxy/stats-t.h>
|
||||||
@ -2177,7 +2176,7 @@ static int h3_send_goaway(struct h3c *h3c)
|
|||||||
static int h3_init(struct qcc *qcc)
|
static int h3_init(struct qcc *qcc)
|
||||||
{
|
{
|
||||||
struct h3c *h3c;
|
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);
|
h3c = pool_alloc(pool_head_h3c);
|
||||||
if (!h3c)
|
if (!h3c)
|
||||||
@ -2190,9 +2189,8 @@ static int h3_init(struct qcc *qcc)
|
|||||||
h3c->id_goaway = 0;
|
h3c->id_goaway = 0;
|
||||||
|
|
||||||
qcc->ctx = h3c;
|
qcc->ctx = h3c;
|
||||||
/* TODO cleanup only ref to quic_conn */
|
|
||||||
h3c->prx_counters =
|
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);
|
&h3_stats_module);
|
||||||
LIST_INIT(&h3c->buf_wait.list);
|
LIST_INIT(&h3c->buf_wait.list);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user