update StopWaitings when queueing retransmissions

fixes #231
This commit is contained in:
Marten Seemann
2016-07-30 15:15:51 +07:00
parent 6a34b9bdf0
commit e8a2c497e9
4 changed files with 27 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ func (h *sentPacketHandler) queuePacketForRetransmission(packet *ackhandlerlegac
}
}
}
// strictly speaking, this is only necessary for RTO retransmissions
// this is because FastRetransmissions are triggered by missing ranges in ACKs, and then the LargestAcked will already be higher than the packet number of the retransmitted packet
h.stopWaitingManager.QueuedRetransmissionForPacketNumber(packet.PacketNumber)
}
func (h *sentPacketHandler) SentPacket(packet *ackhandlerlegacy.Packet) error {