drop incoming packets when the server's receive queue is full

This commit is contained in:
Marten Seemann
2020-02-15 16:43:00 +07:00
parent 9b71878d53
commit 643f0b4c67
3 changed files with 55 additions and 2 deletions

View File

@@ -39,6 +39,9 @@ const DefaultMaxIncomingStreams = 100
// DefaultMaxIncomingUniStreams is the maximum number of unidirectional streams that a peer may open
const DefaultMaxIncomingUniStreams = 100
// MaxServerUnprocessedPackets is the max number of packets stored in the server that are not yet processed.
const MaxServerUnprocessedPackets = 1024
// MaxSessionUnprocessedPackets is the max number of packets stored in each session that are not yet processed.
const MaxSessionUnprocessedPackets = MaxCongestionWindowPackets