MINOR: quic: Attach proxy QUIC stats counters to the QUIC connection
Make usage of EXTRA_COUNTERS_GET() do to so from qc_new_conn().
This commit is contained in:
parent
a58cafeb89
commit
a89659a752
@ -792,6 +792,7 @@ struct quic_conn {
|
||||
|
||||
const struct qcc_app_ops *app_ops;
|
||||
unsigned int sendto_err;
|
||||
struct quic_counters *prx_counters;
|
||||
};
|
||||
|
||||
#endif /* USE_QUIC */
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include <haproxy/quic_frame.h>
|
||||
#include <haproxy/quic_loss.h>
|
||||
#include <haproxy/quic_sock.h>
|
||||
#include <haproxy/quic_stats-t.h>
|
||||
#include <haproxy/quic_stream.h>
|
||||
#include <haproxy/cbuf.h>
|
||||
#include <haproxy/proto_quic.h>
|
||||
@ -4330,8 +4331,13 @@ static struct quic_conn *qc_new_conn(unsigned int version, int ipv4,
|
||||
qc->cids = EB_ROOT;
|
||||
/* QUIC Server (or listener). */
|
||||
if (server) {
|
||||
l = owner;
|
||||
struct proxy *prx;
|
||||
|
||||
l = owner;
|
||||
prx = l->bind_conf->frontend;
|
||||
|
||||
qc->prx_counters = EXTRA_COUNTERS_GET(prx->extra_counters_fe,
|
||||
&quic_stats_module);
|
||||
qc->flags |= QUIC_FL_CONN_LISTENER;
|
||||
qc->state = QUIC_HS_ST_SERVER_INITIAL;
|
||||
/* Copy the initial DCID with the address. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user