]> git.kaiwu.me - nginx.git/commit
QUIC: preparatory changes for multiple QUIC versions support.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 9 Nov 2020 21:20:44 +0000 (00:20 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 9 Nov 2020 21:20:44 +0000 (00:20 +0300)
commit66cb03f003559fbf1cbf9a0654fde4d3201a7842
tree890b30713c0625ee4463832f697dc5b070562193
parentb874b822e1270cb19487cffdd7d0f00080f95b94
QUIC: preparatory changes for multiple QUIC versions support.

A negotiated version is decoupled from NGX_QUIC_VERSION and, if supported,
now stored in c->quic->version after packets processing.  It is then used
to create long header packets.  Otherwise, the list of supported versions
(which may be many now) is sent in the Version Negotiation packet.

All packets in the connection are expected to have the same version.
Incoming packets with mismatched version are now rejected.
src/event/ngx_event_quic.c
src/event/ngx_event_quic_transport.c