]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: properly account for DATA padding in flow control
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2018 15:53:12 +0000 (16:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2018 15:53:12 +0000 (16:53 +0100)
commitd1023bbab3985091a9968192bb984d7724a438a3
treea5e2f09033e742cf1ae91d095404dbd75d804d98
parent50791a7df3b4603fe208d6d83b7513f345ca467a
BUG/MEDIUM: h2: properly account for DATA padding in flow control

Recent fixes made to process partial frames broke the flow control on
DATA frames, as the padding is not considered anymore, only the actual
data is. Let's simply take account of the padding once the transfer
ends. The probability to meet this bug is low because, when used, padding
is small and it can require a large number of padded transfers before the
window is completely depleted.

Thanks to user klzgrad for reporting this bug and confirming the fix.

This fix must be backported to 1.8.
src/mux_h2.c