]> git.kaiwu.me - nginx.git/commit
QUIC: use last client dcid to receive initial packets.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 30 Aug 2023 07:09:21 +0000 (11:09 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 30 Aug 2023 07:09:21 +0000 (11:09 +0400)
commit1bc204a3a564bcadbfb1a8a79f9e5a59d80669b3
tree19a270efa48b6923772755d642d6cde074764445
parent24f3cb795e2d822be39387d828ac2ddc28f775fb
QUIC: use last client dcid to receive initial packets.

Previously, original dcid was used to receive initial client packets in case
server initial response was lost.  However, last dcid should be used instead.
These two are the same unless retry is used.  In case of retry, client resends
initial packet with a new dcid, that is different from the original dcid.  If
server response is lost, the client resends this packet again with the same
dcid.  This is shown in RFC 9000, 7.3. Authenticating Connection IDs, Figure 8.

The issue manifested itself with creating multiple server sessions in response
to each post-retry client initial packet, if server response is lost.
src/event/quic/ngx_event_quic.c
src/event/quic/ngx_event_quic_socket.c