]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: add flow-control info to minimal trace level
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Mar 2023 14:09:41 +0000 (15:09 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Mar 2023 15:08:54 +0000 (16:08 +0100)
Complete traces with information from qcc and qcs instances about
flow-control level. This should help to debug further issue on sending.

This must be backported up to 2.7.

src/qmux_trace.c

index 5f2e26245d83b1a8c4939f2e5c4d304667675450..b213ed45334a3c526ff4de414501e5c33be6db34 100644 (file)
@@ -76,10 +76,16 @@ static void qmux_trace(enum trace_level level, uint64_t mask,
                if (qcc->conn->handle.qc)
                        chunk_appendf(&trace_buf, " qc=%p", qcc->conn->handle.qc);
 
-               if (qcs)
+               chunk_appendf(&trace_buf, " md=%llu/%llu/%llu",
+                             (ullong)qcc->rfctl.md, (ullong)qcc->tx.offsets, (ullong)qcc->tx.sent_offsets);
+
+               if (qcs) {
                        chunk_appendf(&trace_buf, " qcs=%p .id=%llu .st=%s",
                                      qcs, (ullong)qcs->id,
                                      qcs_st_to_str(qcs->st));
+                       chunk_appendf(&trace_buf, " msd=%llu/%llu/%llu",
+                                     (ullong)qcs->tx.msd, (ullong)qcs->tx.offset, (ullong)qcs->tx.sent_offset);
+               }
 
                if (mask & QMUX_EV_QCC_NQCS) {
                        const uint64_t *id = a3;