Merge pull request #2534 from lucas-clemente/reduce-unprocessed-packet-chan-length

reduce the length of the unprocessed packet chan in the session
This commit is contained in:
Marten Seemann
2020-05-13 21:04:33 +07:00
committed by GitHub

View File

@@ -43,7 +43,7 @@ const DefaultMaxIncomingUniStreams = 100
const MaxServerUnprocessedPackets = 1024
// MaxSessionUnprocessedPackets is the max number of packets stored in each session that are not yet processed.
const MaxSessionUnprocessedPackets = MaxCongestionWindowPackets
const MaxSessionUnprocessedPackets = 256
// SkipPacketAveragePeriodLength is the average period length in which one packet number is skipped to prevent an Optimistic ACK attack
const SkipPacketAveragePeriodLength PacketNumber = 500