From 172404a8ecbc0df6425c7f7ee1a9cd633a920ebd Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 26 Sep 2024 10:49:54 +0200 Subject: [PATCH] MINOR: mux-quic: complete Tx infos for QCS dump Complete debug info when a QCS instance is dumped either on traces or show quic. Display the value of Tx offset both soft and real, along with the current flow-control limit. --- src/mux_quic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mux_quic.c b/src/mux_quic.c index 513ca5aa1..af03eb881 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -3429,7 +3429,10 @@ void qcc_show_quic(struct qcc *qcc) if (!quic_stream_is_uni(qcs->id) || !quic_stream_is_local(qcc, qcs->id)) chunk_appendf(&trash, " rxoff=%llu", (ullong)qcs->rx.offset); if (!quic_stream_is_uni(qcs->id) || !quic_stream_is_remote(qcc, qcs->id)) - chunk_appendf(&trash, " txoff=%llu", (ullong)qcs->tx.fc.off_real); + chunk_appendf(&trash, " txoff=%llu(%llu) msd=%llu", + (ullong)qcs->tx.fc.off_real, + (ullong)qcs->tx.fc.off_soft - (ullong)qcs->tx.fc.off_soft, + (ullong)qcs->tx.fc.limit); chunk_appendf(&trash, "\n"); node = eb64_next(node); }