diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index 9e282f5d5..07ccf2319 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -50,7 +50,7 @@ typedef unsigned long long ull; #define QUIC_INITIAL_IPV6_MTU 1232 /* XXX TO DO XXX */ /* Maximum packet length during handshake */ -#define QUIC_PACKET_MAXLEN QUIC_INITIAL_IPV4_MTU +#define QUIC_PACKET_MAXLEN 2048 /* The minimum length of Initial packets. */ #define QUIC_INITIAL_PACKET_MINLEN 1200 diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 783d11e02..49165c38f 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -56,7 +56,7 @@ * before updating them with customized values. */ struct quic_transport_params quic_dflt_transport_params = { - .max_udp_payload_size = QUIC_DFLT_MAX_UDP_PAYLOAD_SIZE, + .max_udp_payload_size = QUIC_PACKET_MAXLEN, .ack_delay_exponent = QUIC_DFLT_ACK_DELAY_COMPONENT, .max_ack_delay = QUIC_DFLT_MAX_ACK_DELAY, .active_connection_id_limit = QUIC_ACTIVE_CONNECTION_ID_LIMIT,