From be0d95414c427ad74d2ca669ed9c5f6f676599f8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 6 Aug 2024 15:22:50 +0200 Subject: [PATCH] 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. (cherry picked from commit 6bf50dfccca992d7f05febb5819e57b601ef94c0) Signed-off-by: Christopher Faulet --- src/quic_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quic_tls.c b/src/quic_tls.c index c3bea30..4dfa748 100644 --- a/src/quic_tls.c +++ b/src/quic_tls.c @@ -200,7 +200,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) @@ -264,7 +264,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: -- 1.7.10.4