From 9ce737db3171909d2a885e3d775f09d882608061 Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Fri, 13 Jun 2025 22:08:56 +0800 Subject: [PATCH] Add log for dropping out of order reliable message (#3728) --- pkg/rtc/participant.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 4ce28bcc0..d6e3dd4a3 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -2163,6 +2163,7 @@ func (p *ParticipantImpl) onReceivedDataMessage(kind livekit.DataPacket_Kind, da func (p *ParticipantImpl) handleReceivedDataMessage(kind livekit.DataPacket_Kind, dp *livekit.DataPacket) { if kind == livekit.DataPacket_RELIABLE && dp.Sequence > 0 { if p.reliableDataInfo.lastPubReliableSeq.Load() >= dp.Sequence { + p.params.Logger.Infow("received out of order reliable data packet", "lastPubReliableSeq", p.reliableDataInfo.lastPubReliableSeq.Load(), "dpSequence", dp.Sequence) return }