]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Aug 2024 14:02:59 +0000 (16:02 +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.

src/quic_tls.c

index bac6c0c9da8a9bb42fc1e7fac2bb1ffc855ce40d..e1f5f21755b22a64c8b560f8a27281d5a3b5d0ab 100644 (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: