소스 검색

update mtu in quic

Darien Raymond 7 년 전
부모
커밋
649f4da92a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go

+ 1 - 1
vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go

@@ -65,7 +65,7 @@ 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
+const MaxReceivePacketSize ByteCount = 1452 - 32
 
 // DefaultTCPMSS is the default maximum packet size used in the Linux TCP implementation.
 // Used in QUIC for congestion window computations in bytes.