MINOR: h3-be: Correctly retrieve h3 counters
This is done using qc_counters() function which supports also QUIC servers.
This commit is contained in:
parent
e27b7b4889
commit
b4a9b53515
6
src/h3.c
6
src/h3.c
@ -36,6 +36,7 @@
|
|||||||
#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.h>
|
||||||
#include <haproxy/quic_enc.h>
|
#include <haproxy/quic_enc.h>
|
||||||
#include <haproxy/quic_fctl.h>
|
#include <haproxy/quic_fctl.h>
|
||||||
#include <haproxy/quic_frame.h>
|
#include <haproxy/quic_frame.h>
|
||||||
@ -2513,7 +2514,6 @@ 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;
|
||||||
const struct listener *li = __objt_listener(qcc->conn->target);
|
|
||||||
|
|
||||||
TRACE_ENTER(H3_EV_H3C_NEW, qcc->conn);
|
TRACE_ENTER(H3_EV_H3C_NEW, qcc->conn);
|
||||||
|
|
||||||
@ -2530,9 +2530,7 @@ static int h3_init(struct qcc *qcc)
|
|||||||
h3c->id_goaway = 0;
|
h3c->id_goaway = 0;
|
||||||
|
|
||||||
qcc->ctx = h3c;
|
qcc->ctx = h3c;
|
||||||
h3c->prx_counters =
|
h3c->prx_counters = qc_counters(qcc->conn->target, &h3_stats_module);
|
||||||
EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe,
|
|
||||||
&h3_stats_module);
|
|
||||||
LIST_INIT(&h3c->buf_wait.list);
|
LIST_INIT(&h3c->buf_wait.list);
|
||||||
|
|
||||||
TRACE_LEAVE(H3_EV_H3C_NEW, qcc->conn);
|
TRACE_LEAVE(H3_EV_H3C_NEW, qcc->conn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user