diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 10:37:51 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 10:37:51 +0400 |
| commit | 6cc803e713698b4b09ab46ccd7ae986faa55c386 (patch) | |
| tree | c0c7289508be1f8a86890b9b34096e5a4c245613 /src/event | |
| parent | 9ab5d15379a26b32d93c706d63fd3f9f241459e0 (diff) | |
| download | nginx-6cc803e713698b4b09ab46ccd7ae986faa55c386.tar.gz nginx-6cc803e713698b4b09ab46ccd7ae986faa55c386.tar.bz2 | |
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.
Diffstat (limited to 'src/event')
| -rw-r--r-- | src/event/quic/ngx_event_quic.h | 1 | ||||
| -rw-r--r-- | src/event/quic/ngx_event_quic_transport.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index 56713ec4d..0c68d68f0 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -69,7 +69,6 @@ typedef struct { ngx_flag_t disable_active_migration; ngx_msec_t timeout; ngx_str_t host_key; - size_t mtu; size_t stream_buffer_size; ngx_uint_t max_concurrent_streams_bidi; ngx_uint_t max_concurrent_streams_uni; diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c index 46456db1d..b663efbe1 100644 --- a/src/event/quic/ngx_event_quic_transport.c +++ b/src/event/quic/ngx_event_quic_transport.c @@ -1987,7 +1987,7 @@ ngx_quic_init_transport_params(ngx_quic_tp_t *tp, ngx_quic_conf_t *qcf) tp->max_idle_timeout = qcf->timeout; - tp->max_udp_payload_size = qcf->mtu; + tp->max_udp_payload_size = NGX_QUIC_MAX_UDP_PAYLOAD_SIZE; nstreams = qcf->max_concurrent_streams_bidi + qcf->max_concurrent_streams_uni; |
