]> git.kaiwu.me - nginx.git/commit
QUIC: fixed address validation issues in a new connection.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 2 Nov 2020 17:38:11 +0000 (17:38 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 2 Nov 2020 17:38:11 +0000 (17:38 +0000)
commit609af6e31d5a74b4a59f2b769fe75b2ab736433e
tree8d115632f5f2092d8dff64872443f4362469a892
parent0aef8438f4d0c49351205f4e32fd9237b5494064
QUIC: fixed address validation issues in a new connection.

The client address validation didn't complete with a valid token,
which was broken after packet processing refactoring in d0d3fc0697a0.

An invalid or expired token was treated as a connection error.
Now we proceed as outlined in draft-ietf-quic-transport-32,
section 8.1.3 "Address Validation for Future Connections" below,
which is unlike validating the client address using Retry packets.

   When a server receives an Initial packet with an address validation
   token, it MUST attempt to validate the token, unless it has already
   completed address validation.  If the token is invalid then the
   server SHOULD proceed as if the client did not have a validated
   address, including potentially sending a Retry.

The connection is now closed in this case on internal errors only.
src/event/ngx_event_quic.c