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.

This commit is contained in:
Kleissner
2021-10-25 04:12:44 +02:00
parent 57450e506f
commit 2df8dba4fe

View File

@@ -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})