BUG/MINOR: quic/trace: make quic_conn_enc_level_init() emit NEW not CLOSE
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2024 13:22:50 +0000 (15:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2024 16:38:38 +0000 (18:38 +0200)
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 <cfaulet@haproxy.com>

src/quic_tls.c

index c3bea30..4dfa748 100644 (file)
@@ -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: