mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user