]> git.kaiwu.me - nginx.git/commit
QUIC: packet processing refactoring.
authorVladimir Homutov <vl@nginx.com>
Wed, 30 Sep 2020 12:14:09 +0000 (15:14 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 30 Sep 2020 12:14:09 +0000 (15:14 +0300)
commit99d4f2399dc466c52bcb30433c6ecc1613130ab8
treeec604358332777821e487b0004af4432e3099fb2
parentfe626bda8426fe7f0a9a9e4930eba30eb2b2f109
QUIC: packet processing refactoring.

All packet header parsing is now performed by ngx_quic_parse_packet()
function, located in the ngx_quic_transport.c file.

The packet processing is centralized in the ngx_quic_process_packet()
function which decides if the packet should be accepted, ignored or
connection should be closed, depending on the connection state.

As a result of refactoring, behavior has changed in some places:

 - minimal size of Initial packet is now always tested
 - connection IDs are always tested in existing connections
 - old keys are discarded on encryption level switch
src/event/ngx_event_quic.c
src/event/ngx_event_quic_transport.c
src/event/ngx_event_quic_transport.h