From 71a5cf09da91f23688a8830ef1cd815b972a85f0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 23 Nov 2018 12:20:13 +0100 Subject: [PATCH] reduce mtu in quic --- .../lucas-clemente/quic-go/internal/protocol/protocol.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go b/vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go index a7ca27a61..b4eba9019 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go +++ b/vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go @@ -65,11 +65,11 @@ type ApplicationErrorCode uint16 // ethernet's max size, minus the IP and UDP headers. IPv6 has a 40 byte header, // UDP adds an additional 8 bytes. This is a total overhead of 48 bytes. // Ethernet's max packet size is 1500 bytes, 1500 - 48 = 1452. -const MaxReceivePacketSize ByteCount = 1452 - 64 +const MaxReceivePacketSize ByteCount = 1300 // DefaultTCPMSS is the default maximum packet size used in the Linux TCP implementation. // Used in QUIC for congestion window computations in bytes. -const DefaultTCPMSS ByteCount = 1460 +const DefaultTCPMSS ByteCount = 1350 // MinClientHelloSize is the minimum size the server expects an inchoate CHLO to have (in gQUIC) const MinClientHelloSize = 1024