Merge pull request #1840 from lucas-clemente/invalid-max-streams-values

error on invalid maximum stream number values
This commit is contained in:
Marten Seemann
2019-04-01 05:15:52 +02:00
committed by GitHub
5 changed files with 47 additions and 13 deletions

View File

@@ -64,6 +64,10 @@ const MinStatelessResetSize = 1 /* first byte */ + 22 /* random bytes */ + 16 /*
// MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
const MinConnectionIDLenInitial = 8
// MaxStreamCount is the maximum stream count value that can be sent in MAX_STREAMS frames
// and as the stream count in the transport parameters
const MaxStreamCount = 1 << 60
// DefaultAckDelayExponent is the default ack delay exponent
const DefaultAckDelayExponent = 3