From: Willy Tarreau Date: Wed, 7 Aug 2024 13:36:17 +0000 (+0200) Subject: MINOR: mux-h3/trace: add a state trace on stream creation/destruction X-Git-Tag: v3.1-dev5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5da87b5dc4e00d74c4e539100dba5dc3c075e7b;p=thirdparty%2Fhaproxy.git MINOR: mux-h3/trace: add a state trace on stream creation/destruction Logging below the developer level doesn't always yield very convenient traces as we don't know well where streams are allocated nor released. Let's just make that more explicit by using state-level traces for these important steps. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index dc7b6d54cf..18846a97e8 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -57,6 +57,7 @@ static void qcs_free(struct qcs *qcs) struct qcc *qcc = qcs->qcc; TRACE_ENTER(QMUX_EV_QCS_END, qcc->conn, qcs); + TRACE_STATE("releasing QUIC stream", QMUX_EV_QCS_END, qcc->conn, qcs); /* Safe to use even if already removed from the list. */ LIST_DEL_INIT(&qcs->el_opening); @@ -183,6 +184,7 @@ static struct qcs *qcs_new(struct qcc *qcc, uint64_t id, enum qcs_type type) } out: + TRACE_STATE("created new QUIC stream", QMUX_EV_QCS_NEW, qcc->conn, qcs); TRACE_LEAVE(QMUX_EV_QCS_NEW, qcc->conn, qcs); return qcs;