]> git.kaiwu.me - nginx.git/commit
Added support of multiple QUIC packets in single datagram.
authorVladimir Homutov <vl@nginx.com>
Thu, 12 Mar 2020 11:43:24 +0000 (14:43 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 12 Mar 2020 11:43:24 +0000 (14:43 +0300)
commit0d10672137264e5ffd2e0445da867c3ff8c874fe
tree289bda304e442f7f762dc297c7447f284674d907
parent0d1c27b5801ac22cf607b06bd7d76f82a4a3a1c5
Added support of multiple QUIC packets in single datagram.

 - now NEW_CONNECTION_ID frames can be received and parsed

The packet structure is created in ngx_quic_input() and passed
to all handlers (initial, handshake and application data).

The UDP datagram buffer is saved as pkt->raw;
The QUIC packet is stored as pkt->data and pkt->len (instead of pkt->buf)
(pkt->len is adjusted after parsing headers to actual length)

The pkt->pos is removed, pkt->raw->pos is used instead.
src/event/ngx_event_quic.c