From: Amaury Denoyelle Date: Wed, 22 Mar 2023 14:09:41 +0000 (+0100) Subject: MINOR: mux-quic: add flow-control info to minimal trace level X-Git-Tag: v2.8-dev6~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4e7616e6c486134f229bb686eab1c660b5c24a6;p=thirdparty%2Fhaproxy.git MINOR: mux-quic: add flow-control info to minimal trace level 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. --- diff --git a/src/qmux_trace.c b/src/qmux_trace.c index 5f2e26245d..b213ed4533 100644 --- a/src/qmux_trace.c +++ b/src/qmux_trace.c @@ -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;