]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Add correct ack delay values to ACK frames
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 5 May 2022 10:04:28 +0000 (12:04 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 12 May 2022 13:30:14 +0000 (15:30 +0200)
commit7cc8b3166a4fcbb3f4e473e2b1bbea5991f4cb67
treee825614ba20861f740d8d9126883d937a1fe8c94
parent9475d890ee647251640edb6faca695a163e80e77
MINOR: quic: Add correct ack delay values to ACK frames

A ->time_received new member is added to quic_rx_packet to store the time the
packet are received. ->largest_time_received is added the the packet number
space structure to store this timestamp for the packet with a new largest
packet number to be acknowledged. QUIC_FL_PKTNS_NEW_LARGEST_PN new flag is
added to mark a packet number space as having to acknowledged a packet wih a
new largest packet number. In this case, the packet number space ack delay
must be recalculated.
Add quic_compute_ack_delay_us() function to compute the ack delay from the value
of the time a packet was received. Used only when a packet with a new largest
packet number.
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/xprt_quic.c