]> git.kaiwu.me - nginx.git/commit
QUIC: fixed padding of initial packets in case of limited path.
authorVladimir Homutov <vl@nginx.com>
Wed, 2 Feb 2022 11:16:48 +0000 (14:16 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 2 Feb 2022 11:16:48 +0000 (14:16 +0300)
commit3b4d10caf6eb3cb7b86c1b6064869b935a7d0076
treeabe0d7429255906378de5d31308f3c9c78dfffc5
parent5a79f55dab7f515eca56639d3bff05b1376701d5
QUIC: fixed padding of initial packets in case of limited path.

Previously, non-padded initial packet could be sent as a result of the
following situation:

 - initial queue is not empty (so padding to 1200 is required)
 - handshake queue is not empty (so padding is to be added after h/s packet)
 - path is limited

If serializing handshake packet would violate path limit, such packet was
omitted, and the non-padded initial packet was sent.

The fix is to avoid sending the packet at all in such case.  This follows the
original intention introduced in c5155a0cb12f.
src/event/quic/ngx_event_quic_output.c