changeset 9088:3028db26a0f5 quic

QUIC: resized input datagram buffer from 65535 to 65527. The value of 65527 is the maximum permitted UDP payload size.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 11 May 2023 09:49:34 +0400
parents 3bb003fcd682
children b9230e37b8a1
files src/event/quic/ngx_event_quic_udp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_udp.c
+++ b/src/event/quic/ngx_event_quic_udp.c
@@ -34,7 +34,7 @@ ngx_quic_recvmsg(ngx_event_t *ev)
     ngx_event_conf_t   *ecf;
     ngx_connection_t   *c, *lc;
     ngx_quic_socket_t  *qsock;
-    static u_char       buffer[65535];
+    static u_char       buffer[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE];
 
 #if (NGX_HAVE_ADDRINFO_CMSG)
     u_char             msg_control[CMSG_SPACE(sizeof(ngx_addrinfo_t))];