limit number of ACK ranges in ReceivedPacketHistory

fixes #195
This commit is contained in:
Marten Seemann
2016-10-28 12:10:56 +07:00
parent 6551a150e3
commit 2c11335de4
5 changed files with 65 additions and 12 deletions

View File

@@ -60,6 +60,9 @@ const MaxTrackedSentPackets = 2 * DefaultMaxCongestionWindow
// MaxTrackedReceivedPackets is the maximum number of received packets saved for doing the entropy calculations
const MaxTrackedReceivedPackets = 2 * DefaultMaxCongestionWindow
// MaxTrackedReceivedAckRanges is the maximum number of ACK ranges tracked
const MaxTrackedReceivedAckRanges = DefaultMaxCongestionWindow
// MaxStreamFrameSorterGaps is the maximum number of gaps between received StreamFrames
// prevents DOS attacks against the streamFrameSorter
const MaxStreamFrameSorterGaps = 1000