comparison src/event/quic/ngx_event_quic_transport.c @ 9103:b9230e37b8a1 quic

QUIC: removed "quic_mtu" directive. The directive used to set the value of the "max_udp_payload_size" transport parameter. According to RFC 9000, Section 18.2, the value specifies the size of buffer for reading incoming datagrams: This limit does act as an additional constraint on datagram size in the same way as the path MTU, but it is a property of the endpoint and not the path; see Section 14. It is expected that this is the space an endpoint dedicates to holding incoming packets. Current QUIC implementation uses the maximum possible buffer size (65527) for reading datagrams.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 11 May 2023 10:37:51 +0400
parents efd91f6afa8d
children 29a6c0e11f75
comparison
equal deleted inserted replaced
9102:3028db26a0f5 9103:b9230e37b8a1
1985 * tp->preferred_address = NULL 1985 * tp->preferred_address = NULL
1986 */ 1986 */
1987 1987
1988 tp->max_idle_timeout = qcf->timeout; 1988 tp->max_idle_timeout = qcf->timeout;
1989 1989
1990 tp->max_udp_payload_size = qcf->mtu; 1990 tp->max_udp_payload_size = NGX_QUIC_MAX_UDP_PAYLOAD_SIZE;
1991 1991
1992 nstreams = qcf->max_concurrent_streams_bidi 1992 nstreams = qcf->max_concurrent_streams_bidi
1993 + qcf->max_concurrent_streams_uni; 1993 + qcf->max_concurrent_streams_uni;
1994 1994
1995 tp->initial_max_data = nstreams * qcf->stream_buffer_size; 1995 tp->initial_max_data = nstreams * qcf->stream_buffer_size;