]> git.kaiwu.me - nginx.git/commit
QUIC: further limiting maximum QUIC packet size.
authorVladimir Homutov <vl@nginx.com>
Tue, 16 Jun 2020 08:54:05 +0000 (11:54 +0300)
committerVladimir Homutov <vl@nginx.com>
Tue, 16 Jun 2020 08:54:05 +0000 (11:54 +0300)
commit3b3264dc25a6d5da80c1641671737fc6505c45f1
tree45ed95f74c4bc239c5f277235a0bc293b7859b02
parentd6d7838c79b179ffafa661826cebbce34c425462
QUIC: further limiting maximum QUIC packet size.

quic-transport draft 29, section 14:

    QUIC depends upon a minimum IP packet size of at least 1280 bytes.
    This is the IPv6 minimum size [RFC8200] and is also supported by most
    modern IPv4 networks.  Assuming the minimum IP header size, this
    results in a QUIC maximum packet size of 1232 bytes for IPv6 and 1252
    bytes for IPv4.

Since the packet size can change during connection lifetime, the
ngx_quic_max_udp_payload() function is introduced that currently
returns minimal allowed size, depending on address family.
src/event/ngx_event_quic.c
src/event/ngx_event_quic.h