limit number of tracked packets in ReceivedPacketHandler

fixes #132
This commit is contained in:
Marten Seemann
2016-06-11 13:51:05 +07:00
parent 459080a6dc
commit c095261749
3 changed files with 23 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ const STKExpiryTimeSec = 24 * 60 * 60
// TODO: decrease this value after dropping support for QUIC 33 and earlier
const MaxTrackedSentPackets uint32 = 2000
// MaxTrackedReceivedPackets is the maximum number of received packets saved for doing the entropy calculations
// TODO: think about what to do with this when adding support for QUIC 34
const MaxTrackedReceivedPackets uint32 = 2000
// MaxStreamFrameSorterGaps is the maximum number of gaps between received StreamFrames
// prevents DOS attacks against the streamFrameSorter
const MaxStreamFrameSorterGaps = 50