]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Lack of precision when computing K (cubic only cc)
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 24 Jul 2024 14:16:26 +0000 (16:16 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 24 Jul 2024 16:24:39 +0000 (18:24 +0200)
commita6d40e09f7c9ebb99d5f08630a6482fbb7d04d26
tree8be95e2d80e81bd5d962ded2f795425ccc7d9fde
parent7eca16921b460819652d450050ce640b77f1adc7
BUG/MINOR: quic: Lack of precision when computing K (cubic only cc)

K cubic variable is stored in ms. But it was a formula with the second as unit
for the window difference parameter which was used to compute K without
considering the loss of information. Then the result was converted in ms (K *= 1000).
This leaded to a lack of precision and multiples of 1000 as values.

To fix this, use the same formula but with the window difference in ms as parameter
passed to the cubic function and remove the conversion.

Must be backported as far as 2.6.
src/quic_cc_cubic.c