BUG/MINOR: quic/trace: make quic_conn_enc_level_init() emit NEW not CLOSE

The event emitted by this trace was of type CLOSE instead of NEW, which
would somtimes temporarily pause a started trace.

This can be backported to 3.0, probably 2.6.
This commit is contained in:
Willy Tarreau 2024-08-06 15:22:50 +02:00
parent 7a22fbd453
commit 6bf50dfccc

View File

@ -199,7 +199,7 @@ static int quic_conn_enc_level_init(struct quic_conn *qc,
int ret = 0;
struct quic_enc_level *qel;
TRACE_ENTER(QUIC_EV_CONN_CLOSE, qc);
TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
qel = pool_alloc(pool_head_quic_enc_level);
if (!qel)
@ -259,7 +259,7 @@ static int quic_conn_enc_level_init(struct quic_conn *qc,
*el = qel;
ret = 1;
leave:
TRACE_LEAVE(QUIC_EV_CONN_CLOSE, qc);
TRACE_LEAVE(QUIC_EV_CONN_NEW, qc);
return ret;
err: