comparison src/event/quic/ngx_event_quic_udp.c @ 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 af5adec171b4
children
comparison
equal deleted inserted replaced
9087:3bb003fcd682 9088:3028db26a0f5
32 struct sockaddr *sockaddr, *local_sockaddr; 32 struct sockaddr *sockaddr, *local_sockaddr;
33 ngx_listening_t *ls; 33 ngx_listening_t *ls;
34 ngx_event_conf_t *ecf; 34 ngx_event_conf_t *ecf;
35 ngx_connection_t *c, *lc; 35 ngx_connection_t *c, *lc;
36 ngx_quic_socket_t *qsock; 36 ngx_quic_socket_t *qsock;
37 static u_char buffer[65535]; 37 static u_char buffer[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE];
38 38
39 #if (NGX_HAVE_ADDRINFO_CMSG) 39 #if (NGX_HAVE_ADDRINFO_CMSG)
40 u_char msg_control[CMSG_SPACE(sizeof(ngx_addrinfo_t))]; 40 u_char msg_control[CMSG_SPACE(sizeof(ngx_addrinfo_t))];
41 #endif 41 #endif
42 42