forked from quic-go/quic-go
remove variable type from congestion server parameters
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user