]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: Count padding for connection flow control on error path
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2026 12:42:16 +0000 (14:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2026 12:52:06 +0000 (14:52 +0200)
commitfbd7148b15672da1afbed884fe5d140ebd5d25e9
tree6d65c43ca5248988dcf43b9171acc4a4befffe84
parent2130c9ccfb70fd7a25fc5ff96ad77c1ccbcbb5f3
BUG/MINOR: mux-h2: Count padding for connection flow control on error path

When DATA frame are received, we take care to update the counter used to
send WINDOW_UPDATE for the connection. It is also performed on error path
when DATA frames are processed. However, when this happened, only the frame
length was accounted while the padding must also be considered.

To fix the issue, the full frame length (h2c->dfl), which include the
padding length, must be added to the amount of newly received data
(h2c->rcvd_c).

The issue was introduced with commit eeacca75d ("BUG/MINOR: mux-h2: count
rejected DATA frames against the connection's flow control") and backported
to 2.8.

So this patch must be backported as far as 2.8.
src/mux_h2.c