remove variable type from congestion server parameters

This commit is contained in:
Marten Seemann
2016-10-27 22:11:16 +07:00
parent a8f45d7959
commit 2e7fb25672
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -3,10 +3,10 @@ package protocol
import "time"
// DefaultMaxCongestionWindow is the default for the max congestion window
const DefaultMaxCongestionWindow PacketNumber = 1000
const DefaultMaxCongestionWindow = 1000
// InitialCongestionWindow is the initial congestion window in QUIC packets
const InitialCongestionWindow PacketNumber = 32
const InitialCongestionWindow = 32
// MaxUndecryptablePackets limits the number of undecryptable packets that a
// session queues for later until it sends a public reset.