]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h3: Add the quic_conn object to h3 traces
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 8 Sep 2022 14:03:13 +0000 (16:03 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 8 Sep 2022 16:04:58 +0000 (18:04 +0200)
This is very useful to associate h3 traces to a QUIC connection when debugging.

Must be backported to 2.6.

src/h3.c

index 28656fc71cee8bc6d917d25bb483fb3d2f2b847c..f1cf4e15ebe4968567167fe6c94e55b435640a56 100644 (file)
--- 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);