Add log for dropping out of order reliable message (#3728)

This commit is contained in:
cnderrauber authored and GitHub committed 2025-06-13 22:08:56 +08:00
1 parent 1b95e818c9
commit 9ce737db31
1 file changed
+1
+1
View File
@@ -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
}