set max tracked packets to max cwnd * 2

This commit is contained in:
Lucas Clemente
2016-09-05 00:59:10 +02:00
parent 3b1231db81
commit 8c6eb61850
6 changed files with 9 additions and 12 deletions

View File

@@ -75,7 +75,7 @@ func (h *receivedPacketHandler) ReceivedPacket(packetNumber protocol.PacketNumbe
h.receivedTimes[packetNumber] = time.Now()
if uint32(len(h.receivedTimes)) > protocol.MaxTrackedReceivedPackets {
if protocol.PacketNumber(len(h.receivedTimes)) > protocol.MaxTrackedReceivedPackets {
return errTooManyOutstandingReceivedPackets
}