]> git.kaiwu.me - nginx.git/commit
QUIC: optimized ACK delay.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 27 Jul 2023 12:37:17 +0000 (16:37 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 27 Jul 2023 12:37:17 +0000 (16:37 +0400)
commit6e60e21ac09a88a17e08cb4a15ebfcd6634ba10b
tree1b0cb3a393806680113afdf9f2941329231acb68
parentbdea5b703ff6f6fcf98ac8dd4e1e9e5c9ad05017
QUIC: optimized ACK delay.

Previously ACK was not generated if max_ack_delay was not yet expired and the
number of unacknowledged ack-eliciting packets was less than two, as allowed by
RFC 9000 13.2.1-13.2.2.  However this only makes sense to avoid sending ACK-only
packets, as explained by the RFC:

  On the other hand, reducing the frequency of packets that carry only
  acknowledgments reduces packet transmission and processing cost at both
  endpoints.

Now ACK is delayed only if output frame queue is empty.  Otherwise ACK is sent
immediately, which significantly improves QUIC performance with certain tests.
src/event/quic/ngx_event_quic_ack.c