diff options
author | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 09:49:34 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 09:49:34 +0400 |
commit | 9ab5d15379a26b32d93c706d63fd3f9f241459e0 (patch) | |
tree | 5b6f140f0a99d602f39d1227c97a38c77b621bc8 /src | |
parent | 885c4881915e28661f341b9ac3807afb84c8b779 (diff) | |
download | nginx-9ab5d15379a26b32d93c706d63fd3f9f241459e0.tar.gz nginx-9ab5d15379a26b32d93c706d63fd3f9f241459e0.zip |
QUIC: resized input datagram buffer from 65535 to 65527.
The value of 65527 is the maximum permitted UDP payload size.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/quic/ngx_event_quic_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_udp.c b/src/event/quic/ngx_event_quic_udp.c index f7253a27d..0721ca8b6 100644 --- 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))]; |