]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h2: Don't expect more HTX data on 1xx interim responses
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 08:01:59 +0000 (10:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 12:05:25 +0000 (14:05 +0200)
commit1f70dbfbb17cea3deae9315c17ff33ec157e1f20
tree753dd3ce8d702b19638167358527448be2b697f2
parent76454cbbf4227291db0ca3514f43a745eaad3f86
BUG/MINOR: mux-h2: Don't expect more HTX data on 1xx interim responses

Commit b70921f2c ("BUG/MINOR: mux-h2: Properly handle full or truncated HTX
messages on shut") introduced a regression. When the response start-line had
the HTX_SL_F_XFER_LEN flag set, the H2 stream was flagged with
H2_SF_MORE_HTX_DATA, as if a payload was expected after the response
headers. This was also set for 1xx interim responses. If a final response
with an unknown length was received (no HTX_SL_F_XFER_LEN set), the flag
H2_SF_MORE_HTX_DATA was not removed, leading to an error. The H2 stream was
seen as truncated when a shut was performed and it was reset with a
RST_STREAM(CANCEL).

To fix the issue, H2_SF_MORE_HTX_DATA flag is no longer set for 1XX interim
responses.

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