]> git.kaiwu.me - nginx.git/commitdiff
QUIC: resized input datagram buffer from 65535 to 65527.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 11 May 2023 05:49:34 +0000 (09:49 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 11 May 2023 05:49:34 +0000 (09:49 +0400)
The value of 65527 is the maximum permitted UDP payload size.

src/event/quic/ngx_event_quic_udp.c

index f7253a27d699a65794aa36e1e737bc7d24896644..0721ca8b663b920fb9a78f43e5ddc1655566c284 100644 (file)
@@ -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))];