]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h2: properly ignore R bit in WINDOW_UPDATE increments
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 06:21:47 +0000 (07:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 06:21:47 +0000 (07:21 +0100)
commite31640368a7280aec82568f89d1f965fcc65f7cd
treedb3a2c63278c6e64dcba06029836a783bad86435
parent0e231bbd7ca7b3f35c1358ef9145280db90a96b6
BUG/MINOR: mux-h2: properly ignore R bit in WINDOW_UPDATE increments

The window size increments are 31 bits and the topmost bit is reserved
and should be ignored, however it was not masked, so a peer sending it
set would emit a negative value which could actually reduce the current
window instead of increasing it. Note that the window cannot reach zero
as there's already a test for this, but transfers could slow down to
the same speed as if an initial window of just a few bytes had been
advertised. Let's just mask the reserved bit before processing.

This should be backported to all stable versions.
src/mux_h2.c