]> git.kaiwu.me - nginx.git/commit
QUIC: ignore path validation socket error (ticket #2532).
authorRoman Arutyunyan <arut@nginx.com>
Thu, 31 Aug 2023 06:54:07 +0000 (10:54 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 31 Aug 2023 06:54:07 +0000 (10:54 +0400)
commitba30ff4c8de1ac8c79a12da50ef94e5d9f99fa66
treee80947faf625c4e402a68eca777734abd8629408
parent1bc204a3a564bcadbfb1a8a79f9e5a59d80669b3
QUIC: ignore path validation socket error (ticket #2532).

Previously, a socket error on a path being validated resulted in validation
error and subsequent QUIC connection closure.  Now the error is ignored and
path validation proceeds as usual, with several retries and a timeout.

When validating the old path after an apparent migration, that path may already
be unavailable and sendmsg() may return an error, which should not result in
QUIC connection close.

When validating the new path, it's possible that the new client address is
spoofed (See RFC 9000, 9.3.2. On-Path Address Spoofing).  This address may
as well be unavailable and should not trigger QUIC connection closure.
src/event/quic/ngx_event_quic_migration.c