]> git.kaiwu.me - nginx.git/commit
QUIC: path aware in-flight bytes accounting.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 12 Dec 2023 16:21:12 +0000 (20:21 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 12 Dec 2023 16:21:12 +0000 (20:21 +0400)
commit386329d3cf207e0a52056d195fefb4e85dfc8c26
tree1d5d969a3012288fde5e77e79d2759a5ff950db7
parent4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9
QUIC: path aware in-flight bytes accounting.

On-packet acknowledgement is made path aware, as per RFC 9000, Section 9.4:
    Packets sent on the old path MUST NOT contribute to congestion control
    or RTT estimation for the new path.

To make this possible in a single congestion control context, the first packet
to be sent after the new path has been validated, which includes resetting the
congestion controller and RTT estimator, is now remembered in the connection.
Packets sent previously, such as on the old path, are not taken into account.

Note that although the packet number is saved per-connection, the added checks
affect application level packets only.  For non-application level packets,
which are only processed prior to the handshake is complete, the remembered
packet number remains set to zero.
src/event/quic/ngx_event_quic_ack.c
src/event/quic/ngx_event_quic_connection.h
src/event/quic/ngx_event_quic_migration.c