]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: h1-htx: Don't report EOM for H1 interim responses during parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 05:34:13 +0000 (07:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 12:05:25 +0000 (14:05 +0200)
commit76454cbbf4227291db0ca3514f43a745eaad3f86
tree6cb65e38e713209de1a9e0d7f602d6a1e9b9fee0
parente6f616af97c93c1d8945cf8cfd77a1c8e36a2640
BUG/MEDIUM: h1-htx: Don't report EOM for H1 interim responses during parsing

Commit b7467ca91 ("MAJOR: htx: Use htx_set_eom() instead of setting
HTX_FL_EOM by hand") introduced a regression. During H1 response parsing,
the end of the message was reported in 1XX interim responses, while it
should not. Because of this issue, a BUG_ON() was triggered on the final
response parsing.

The calls to htx_set_eom() function in h1_postparse_req_hdrs() and
h1_postparse_res_hdrs() was factorized to be always set when the parser
reached H1_MSG_DONE state. This was obviously wrong for 1XX interim
messages.

Thanks to Adam Crawford for reporting this issue.

It is a 3.5-specific issue. No backport needed.
src/h1_htx.c