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 <cfaulet@haproxy.com>
(cherry picked from commit be0d95414c427ad74d2ca669ed9c5f6f676599f8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 8955f37ff60cc355c84e470aad3d41099a2917e7)
[wt: adj ctx]
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/src/quic_conn.c b/src/quic_conn.c
index 4812834..0a6a59e 100644
--- a/src/quic_conn.c
+++ b/src/quic_conn.c
@@ -5436,7 +5436,7 @@
int ret = 0;
struct quic_enc_level *qel;
- TRACE_ENTER(QUIC_EV_CONN_CLOSE, qc);
+ TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
qel = &qc->els[level];
qel->level = quic_to_ssl_enc_level(level);
@@ -5474,7 +5474,7 @@
ret = 1;
leave:
- TRACE_LEAVE(QUIC_EV_CONN_CLOSE, qc);
+ TRACE_LEAVE(QUIC_EV_CONN_NEW, qc);
return ret;
}