Skip to content

Commit 3704e0e

Browse files
committed
BUG/MINOR: mux-quic: fix show quic report of QCS prepared bytes
On show quic, each MUX streams are listed with their various indicator for buffering on Rx and Tx. In particular, txoff displays in parenthesis the current level of data prepared by the upper stream instance not yet emitted by QUIC transport layer. This value is only accessible after a substract operation. However, there was a typo which caused the result to be always 0. Fix this by reusing the correct offsets in the calculation. This should be backported up to 3.0.
1 parent a7e5180 commit 3704e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mux_quic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3619,7 +3619,7 @@ void qcc_show_quic(struct qcc *qcc)
36193619
if (!quic_stream_is_uni(qcs->id) || !quic_stream_is_remote(qcc, qcs->id))
36203620
chunk_appendf(&trash, " txoff=%llu(%llu) msd=%llu",
36213621
(ullong)qcs->tx.fc.off_real,
3622-
(ullong)qcs->tx.fc.off_soft - (ullong)qcs->tx.fc.off_soft,
3622+
(ullong)qcs->tx.fc.off_soft - (ullong)qcs->tx.fc.off_real,
36233623
(ullong)qcs->tx.fc.limit);
36243624
chunk_appendf(&trash, "\n");
36253625
node = eb64_next(node);

0 commit comments

Comments
 (0)