Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG/MEDIUM: mux-h2: Refuse interim responses with end-stream flag set
As state in RFC9113#8.1, HEADERS frame with the ES flag set that carries an informational status code is malformed. However, there is no test on this condition. On 2.4 and higher, it is hard to predict consequences of this bug because end of the message is only reported with a flag. But on 2.2 and lower, it leads to a crash because there is an unexpected extra EOM block at the end of an interim response. Now, when a ES flag is detected on a HEADERS frame for an interim message, a stream error is sent (RST_STREAM/PROTOCOL_ERROR). This patch should solve the issue haproxy#1972. It should be backported as far as 2.0. (cherry picked from commit 827a629) Signed-off-by: Willy Tarreau <w@1wt.eu> (cherry picked from commit ebfae00) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com> (cherry picked from commit 84f5cba) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com> (cherry picked from commit f5748a9) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
- Loading branch information