Act on IETF QUIC max_packet_size
After we receive the IETF QUIC max_packet_size transport parameter, we should not send packets larger than that value. This CL enforces this.
gfe-relnote: act on IETF QUIC max_packet_size, protected by disabled TLS versions
PiperOrigin-RevId: 290114223
Change-Id: I8ac886b49ae7a6099a393dbd7af1e0f765181241
diff --git a/quic/core/quic_constants.h b/quic/core/quic_constants.h
index aad6d3a..c4a83b3 100644
--- a/quic/core/quic_constants.h
+++ b/quic/core/quic_constants.h
@@ -50,6 +50,9 @@
// The maximal IETF DATAGRAM frame size we'll accept. Choosing 2^16 ensures
// that it is greater than the biggest frame we could ever fit in a QUIC packet.
const QuicByteCount kMaxAcceptedDatagramFrameSize = 65536;
+// Default value of the max_packet_size transport parameter if it is not
+// transmitted.
+const QuicByteCount kDefaultMaxPacketSizeTransportParam = 65527;
// Default maximum packet size used in the Linux TCP implementation.
// Used in QUIC for congestion window computations in bytes.
const QuicByteCount kDefaultTCPMSS = 1460;