]> git.kaiwu.me - nginx.git/commit
QUIC: fixed unsent MTU probe acknowledgement.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 14 Feb 2024 12:56:28 +0000 (16:56 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 14 Feb 2024 12:56:28 +0000 (16:56 +0400)
commited47f72a85fb6279e2ba5d431f64ea4db695cf4e
treec2460141a954e88d8cb031f41a07ff421736f969
parent71a0a4acdbb9ed0a8ef269a28218365cde00415d
QUIC: fixed unsent MTU probe acknowledgement.

Previously if an MTU probe send failed early in ngx_quic_frame_sendto()
due to allocation error or congestion control, the application level packet
number was not increased, but was still saved as MTU probe packet number.
Later when a packet with this number was acknowledged, the unsent MTU probe
was acknowledged as well.  This could result in discovering a bigger MTU than
supported by the path, which could lead to EMSGSIZE (Message too long) errors
while sending further packets.

The problem existed since PMTUD was introduced in 58afcd72446f (1.25.2).
Back then only the unlikely memory allocation error could trigger it.  However
in efcdaa66df2e congestion control was added to ngx_quic_frame_sendto() which
can now trigger the issue with a higher probability.
src/event/quic/ngx_event_quic_migration.c