From: Frédéric Lécaille Date: Thu, 8 Sep 2022 14:03:13 +0000 (+0200) Subject: MINOR: h3: Add the quic_conn object to h3 traces X-Git-Tag: v2.7-dev6~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eb5faa2ad734c2c65186da2533732163ead5d43;p=thirdparty%2Fhaproxy.git MINOR: h3: Add the quic_conn object to h3 traces This is very useful to associate h3 traces to a QUIC connection when debugging. Must be backported to 2.6. --- diff --git a/src/h3.c b/src/h3.c index 28656fc71c..f1cf4e15eb 100644 --- a/src/h3.c +++ b/src/h3.c @@ -1253,6 +1253,8 @@ static void h3_trace(enum trace_level level, uint64_t mask, if (src->verbosity > H3_VERB_CLEAN) { chunk_appendf(&trace_buf, " : qcc=%p(F)", qcc); + if (qcc->conn->handle.qc) + chunk_appendf(&trace_buf, " qc=%p", qcc->conn->handle.qc); if (qcs) chunk_appendf(&trace_buf, " qcs=%p(%llu)", qcs, (ull)qcs->id);