Welcome! Log In Create A New Profile

Advanced

[PATCH 1 of 2] QUIC: resized input datagram buffer from 65535 to 65527

Roman Arutyunyan
May 11, 2023 02:28AM
# HG changeset patch
# User Roman Arutyunyan <arut@nginx.com>
# Date 1683784174 -14400
# Thu May 11 09:49:34 2023 +0400
# Branch quic
# Node ID d2cc7adb261edc92988411ac7e0c8059419c201d
# Parent d565cf69ff5d82d76011fdd8af03ae42b2cb145b
QUIC: resized input datagram buffer from 65535 to 65527.

The value of 65527 is the maximum permitted UDP payload size.

diff --git a/src/event/quic/ngx_event_quic_udp.c b/src/event/quic/ngx_event_quic_udp.c
--- 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))];
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 0 of 2] QUIC datagram size updates

Roman Arutyunyan 240 May 11, 2023 02:28AM

[PATCH 1 of 2] QUIC: resized input datagram buffer from 65535 to 65527

Roman Arutyunyan 84 May 11, 2023 02:28AM

[PATCH 2 of 2] QUIC: removed "quic_mtu" directive

Roman Arutyunyan 95 May 11, 2023 02:28AM

Re: [PATCH 2 of 2] QUIC: removed "quic_mtu" directive

Roman Arutyunyan 78 May 11, 2023 02:42AM

Re: [PATCH 2 of 2] QUIC: removed "quic_mtu" directive

Maxim Konovalov 106 May 11, 2023 11:22AM

Re: [PATCH 0 of 2] QUIC datagram size updates

Sergey Kandaurov 71 May 11, 2023 10:54AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready