Log a bit more details of out-of-order TWCC feedback report. (#4343)

* Log a bit more details of out-of-order TWCC feedback report.

* Revert to mono.Now()
This commit is contained in:
Raja Subramanian
2026-03-05 11:55:13 +05:30
committed by GitHub
parent 516aeabf45
commit 52c28a938d
2 changed files with 7 additions and 11 deletions
+6 -7
View File
@@ -15,7 +15,6 @@
package sendsidebwe
import (
"errors"
"time"
"github.com/livekit/protocol/logger"
@@ -35,12 +34,6 @@ const (
// ------------------------------------------------------
var (
errFeedbackReportOutOfOrder = errors.New("feedback report out-of-order")
)
// ------------------------------------------------------
type twccFeedbackParams struct {
Logger logger.Logger
}
@@ -78,6 +71,12 @@ func (t *twccFeedback) ProcessReport(report *rtcp.TransportLayerCC, at time.Time
if (report.FbPktCount - t.highestFeedbackCount) > (1 << 7) {
t.numReportsOutOfOrder++
isOutOfOrder = true
t.params.Logger.Infow(
"send side bwe: received out-of-order feedback report",
"highestFeedbackCount", t.highestFeedbackCount,
"fbPktCount", report.FbPktCount,
"numReportsOutOfOrder", t.numReportsOutOfOrder,
)
}
// reference time wrap around handling