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.
This commit is contained in:
Amaury Denoyelle 2024-11-21 15:18:41 +01:00
parent a7e5180c71
commit 3704e0e174

View file

@ -3619,7 +3619,7 @@ void qcc_show_quic(struct qcc *qcc)
if (!quic_stream_is_uni(qcs->id) || !quic_stream_is_remote(qcc, qcs->id))
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.off_soft - (ullong)qcs->tx.fc.off_real,
(ullong)qcs->tx.fc.limit);
chunk_appendf(&trash, "\n");
node = eb64_next(node);