use LeastUnacked in packet number derivation

fixes #271
This commit is contained in:
Lucas Clemente
2016-08-10 13:29:30 +02:00
parent 5444c196b3
commit 805c21cb77
10 changed files with 32 additions and 32 deletions

View File

@@ -273,8 +273,8 @@ func (h *sentPacketHandler) BytesInFlight() protocol.ByteCount {
return h.bytesInFlight
}
func (h *sentPacketHandler) GetLargestAcked() protocol.PacketNumber {
return h.LargestAcked
func (h *sentPacketHandler) GetLeastUnacked() protocol.PacketNumber {
return h.LargestInOrderAcked + 1
}
func (h *sentPacketHandler) GetStopWaitingFrame() *frames.StopWaitingFrame {