pack QUIC 34 packets with the correct maximum size

fixes #187
This commit is contained in:
Marten Seemann
2016-06-23 18:23:34 +07:00
parent 5e890a8f61
commit ab1db83134
3 changed files with 21 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ const MaxByteCount = math.MaxUint64
const MaxPacketSize ByteCount = 1350
// MaxFrameAndPublicHeaderSize is the maximum size of a QUIC frame plus PublicHeader
const MaxFrameAndPublicHeaderSize = MaxPacketSize - 1 /*private header*/ - 12 /*crypto signature*/
const MaxFrameAndPublicHeaderSize = MaxPacketSize - 12 /*crypto signature*/
// DefaultTCPMSS is the default maximum packet size used in the Linux TCP implementation.
// Used in QUIC for congestion window computations in bytes.