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

@@ -27,3 +27,9 @@ func (s *stopWaitingManager) ReceivedAck(ack *frames.AckFrame) {
s.nextLeastUnacked = ack.LargestAcked + 1
}
}
func (s *stopWaitingManager) QueuedRetransmissionForPacketNumber(p protocol.PacketNumber) {
if p >= s.nextLeastUnacked {
s.nextLeastUnacked = p + 1
}
}