From 4df007dc99fbaa101d9b56b16cbae5f82498a51d Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 1 Jun 2016 17:19:32 +0700 Subject: [PATCH] reduce MaxPacketSize to the value used by Chromium ref #94, #117 --- protocol/protocol.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/protocol.go b/protocol/protocol.go index 8cd4b0de..eeafb24b 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -37,7 +37,8 @@ type ByteCount uint64 const MaxByteCount = math.MaxUint64 // MaxPacketSize is the maximum packet size, including the public header -const MaxPacketSize ByteCount = 1452 +// This is the value used by Chromium for a QUIC packet sent using IPv6 (for IPv4 it would be 1370) +const MaxPacketSize ByteCount = 1350 // MaxFrameAndPublicHeaderSize is the maximum size of a QUIC frame plus PublicHeader const MaxFrameAndPublicHeaderSize = MaxPacketSize - 1 /*private header*/ - 12 /*crypto signature*/