From 2df8dba4fe89b952df871bcb9e3c4906932902f9 Mon Sep 17 00:00:00 2001 From: Kleissner Date: Mon, 25 Oct 2021 04:12:44 +0200 Subject: [PATCH] UDT: Temporary bush fix for buggy code #43. Packet loss is currently ignored, but at least it works now. The function udtSocketRecv.sendNAK is an endless loop and needs a rewrite. --- udt/udtsocket_recv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udt/udtsocket_recv.go b/udt/udtsocket_recv.go index a721dd1..f4df38a 100644 --- a/udt/udtsocket_recv.go +++ b/udt/udtsocket_recv.go @@ -226,7 +226,7 @@ func (s *udtSocketRecv) ingestData(p *packet.DataPacket, now time.Time) { excluding) these two values into the receiver's loss list and send them to the sender in an NAK packet. */ seqDiff := seq.BlindDiff(s.farNextPktSeq) - if seqDiff > 0 { + if seqDiff > 0 && false { newLoss := make(receiveLossHeap, 0, seqDiff) for idx := s.farNextPktSeq; idx != seq; idx.Incr() { newLoss = append(newLoss, recvLossEntry{packetID: seq})