Merge pull request #2349 from lucas-clemente/coalesced-packets

implement sending of coalesced packets
This commit is contained in:
Marten Seemann
2020-02-20 16:53:33 +07:00
committed by GitHub
12 changed files with 645 additions and 358 deletions

View File

@@ -84,6 +84,10 @@ const MaxStreamFrameSorterGaps = 1000
// very small STREAM frames to consume a lot of memory.
const MinStreamFrameBufferSize = 128
// MinCoalescedPacketSize is the minimum size of a coalesced packet that we pack.
// If a packet has less than this number of bytes, we won't coalesce any more packets onto it.
const MinCoalescedPacketSize = 128
// MaxCryptoStreamOffset is the maximum offset allowed on any of the crypto streams.
// This limits the size of the ClientHello and Certificates that can be received.
const MaxCryptoStreamOffset = 16 * (1 << 10)