]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: start to introduce the window size in the offset calculation
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2024 18:22:08 +0000 (20:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Oct 2024 14:29:16 +0000 (16:29 +0200)
commitc9275084bcf0147dc0c7e8d79eec912f67b4e672
treec4a3d5e09f84459becb8b2aec3c3a34444da8c0c
parent1cc851d9f2fe7c09a6c841be8e7187e7fb904dec
MEDIUM: mux-h2: start to introduce the window size in the offset calculation

Instead of incrementing the last_max_ofs by the amount of received bytes,
we now start from the new current offset to which we add the static window
size. The result is exactly the same but it prepares the code to use a
window size combined with an offset instead of just refilling the budget
from what was received.

It was even verified that changing h2_fe_settings_initial_window_size in
the middle of a transfer using gdb does indeed allow the transfer speed
to adapt accordingly.
src/mux_h2.c