forked from quic-go/quic-go
fix NACKing of packets below lowest ACK range in new SentPacketHandler
This did not cause an error, since the packet didn't exist in the packetHistory. With this fix, it is more consistent and it saves one loop iteration.
This commit is contained in:
@@ -184,7 +184,7 @@ func (h *sentPacketHandler) ReceivedAck(ackFrame *frames.AckFrame, withPacketNum
|
||||
var lostPackets congestion.PacketVector
|
||||
|
||||
// NACK packets below the LowestAcked
|
||||
for i := h.LargestInOrderAcked; i < ackFrame.LowestAcked; i++ {
|
||||
for i := h.LargestInOrderAcked + 1; i < ackFrame.LowestAcked; i++ {
|
||||
p, err := h.nackPacket(i)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user