]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: complete Tx infos for QCS dump
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Sep 2024 08:49:54 +0000 (10:49 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Oct 2024 09:51:51 +0000 (11:51 +0200)
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

index 513ca5aa13df0df3ce50afd25267550fdd0276b5..af03eb88144e42ec577a1fcd155f3a1db8898af2 100644 (file)
@@ -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);
        }