use a varint for the error code in the CONNECTION_CLOSE frame

This commit is contained in:
Marten Seemann
2019-06-14 17:35:40 +08:00
parent 2225bfd9a2
commit 453aa23553
4 changed files with 26 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ type ByteCount uint64
const MaxByteCount = ByteCount(1<<62 - 1)
// An ApplicationErrorCode is an application-defined error code.
type ApplicationErrorCode uint16
type ApplicationErrorCode uint64
// MaxReceivePacketSize maximum packet size of any QUIC packet, based on
// ethernet's max size, minus the IP and UDP headers. IPv6 has a 40 byte header,