forked from quic-go/quic-go
limit number of tracked skipped packet numbers in SentPacketHandler
This commit is contained in:
committed by
Lucas Clemente
parent
78fab5c264
commit
65838f34a8
@@ -47,6 +47,9 @@ const RetransmissionThreshold uint8 = 3
|
||||
// SkipPacketAveragePeriodLength is the average period length in which one packet number is skipped to prevent an Optimistic ACK attack
|
||||
const SkipPacketAveragePeriodLength PacketNumber = 500
|
||||
|
||||
// MaxTrackedSkippedPackets is the maximum number of skipped packet numbers the SentPacketHandler keep track of for Optimistic ACK attack mitigation
|
||||
const MaxTrackedSkippedPackets int = 10
|
||||
|
||||
// STKExpiryTimeSec is the valid time of a source address token in seconds
|
||||
const STKExpiryTimeSec = 24 * 60 * 60
|
||||
|
||||
|
||||
Reference in New Issue
Block a user