]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: More precise window update calculation
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 3 Mar 2022 06:50:45 +0000 (07:50 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 4 Mar 2022 16:47:32 +0000 (17:47 +0100)
commit0e7c9a71431ce55816fee76f3e6109cbda6dd3a9
tree7d3a98f1597a27d36f33eeda441ebc5d585dcffa
parentabdf4a15331af03a3d1a132de3171823c8ee5e8a
MINOR: quic: More precise window update calculation

When in congestion avoidance state and when acknowledging an <acked> number bytes
we must increase the congestion window by at most one datagram (<path->mtu>)
by congestion window. So thanks to this patch we apply a ratio to the current
number of acked bytes : <acked> * <path->mtu> / <cwnd>.
So, when <cwnd> bytes are acked we precisely increment <cwnd> by <path->mtu>.
Furthermore we take into an account the number of remaining acknowledged bytes
each time we increment the window by <acked> storing their values in the algorithm
struct state (->remain_acked) so that it might be take into an account at the
next ACK event.
include/haproxy/quic_cc-t.h
src/quic_cc_newreno.c