mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MINOR: mux-quic: add traces for flow-control limit reach
Add new traces when QUIC flow-control limits are reached at stream or connection level. This may help to explain an interrupted transfer. This should be backported up to 2.6.
This commit is contained in:
parent
ab6cdecd71
commit
31d2057c59
@ -1446,15 +1446,19 @@ void qcc_streams_sent_done(struct qcs *qcs, uint64_t data, uint64_t offset)
|
|||||||
/* increase offset sum on connection */
|
/* increase offset sum on connection */
|
||||||
qcc->tx.sent_offsets += diff;
|
qcc->tx.sent_offsets += diff;
|
||||||
BUG_ON_HOT(qcc->tx.sent_offsets > qcc->rfctl.md);
|
BUG_ON_HOT(qcc->tx.sent_offsets > qcc->rfctl.md);
|
||||||
if (qcc->tx.sent_offsets == qcc->rfctl.md)
|
if (qcc->tx.sent_offsets == qcc->rfctl.md) {
|
||||||
qcc->flags |= QC_CF_BLK_MFCTL;
|
qcc->flags |= QC_CF_BLK_MFCTL;
|
||||||
|
TRACE_STATE("connection flow-control reached", QMUX_EV_QCS_SEND, qcc->conn);
|
||||||
|
}
|
||||||
|
|
||||||
/* increase offset on stream */
|
/* increase offset on stream */
|
||||||
qcs->tx.sent_offset += diff;
|
qcs->tx.sent_offset += diff;
|
||||||
BUG_ON_HOT(qcs->tx.sent_offset > qcs->tx.msd);
|
BUG_ON_HOT(qcs->tx.sent_offset > qcs->tx.msd);
|
||||||
BUG_ON_HOT(qcs->tx.sent_offset > qcs->tx.offset);
|
BUG_ON_HOT(qcs->tx.sent_offset > qcs->tx.offset);
|
||||||
if (qcs->tx.sent_offset == qcs->tx.msd)
|
if (qcs->tx.sent_offset == qcs->tx.msd) {
|
||||||
qcs->flags |= QC_SF_BLK_SFCTL;
|
qcs->flags |= QC_SF_BLK_SFCTL;
|
||||||
|
TRACE_STATE("stream flow-control reached", QMUX_EV_QCS_SEND, qcc->conn, qcs);
|
||||||
|
}
|
||||||
|
|
||||||
if (qcs->tx.offset == qcs->tx.sent_offset &&
|
if (qcs->tx.offset == qcs->tx.sent_offset &&
|
||||||
b_full(&qcs->stream->buf->buf)) {
|
b_full(&qcs->stream->buf->buf)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user