From 4292bd7ad984b3e1179b5ff82853addff6ded29a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 27 Aug 2021 21:26:50 +0900 Subject: [PATCH] nghttpx: Set max udp payload size to IPv4 minimum payload size for now --- src/shrpx_quic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_quic.h b/src/shrpx_quic.h index 55724197..8fd64245 100644 --- a/src/shrpx_quic.h +++ b/src/shrpx_quic.h @@ -37,7 +37,7 @@ struct UpstreamAddr; constexpr size_t SHRPX_QUIC_SCIDLEN = 20; constexpr size_t SHRPX_QUIC_CID_PREFIXLEN = 8; -constexpr size_t SHRPX_MAX_UDP_PAYLOAD_SIZE = 1280; +constexpr size_t SHRPX_MAX_UDP_PAYLOAD_SIZE = NGTCP2_MAX_PKTLEN_IPV4; constexpr size_t SHRPX_QUIC_STATELESS_RESET_SECRETLEN = 32; constexpr size_t SHRPX_QUIC_TOKEN_SECRETLEN = 32; constexpr size_t SHRPX_QUIC_TOKEN_RAND_DATALEN = 16;