]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: reset HTX message after trailers parsing error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 27 Oct 2026 14:42:04 +0000 (15:42 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Oct 2026 10:06:00 +0000 (11:06 +0100)
commit2d7ef76313ca4064ee8ffa1aa6cc736018f4f4ee
tree70f710690188a2e42d7fccd31841b83b1ac8932f
parent9c8f5952032a705eb592ee4ab65c1b879ea0c864
BUG/MINOR: h3: reset HTX message after trailers parsing error

HTTP/3 trailers parsing was adapted by the following patch to rely on
the common function http_trailers_to_htx().

  25a11d345425be08cb01fec0eae5dfe8b423ee57
  MEDIUM: h3: rely on the generic trailers parser

Along this change, h3_trailers_to_htx() error path has been updated to
regroup failure with or without glitch via two labels. However, it
bypasses HTX message reset, leaving the stream buffer appearing as full
and possibly containing a partial trailers conversion.

Fix this by restoring the single unified function end. Return value and
glitch are directly adjusted in the switch statement from
http_trailers_to_htx() result.

No need to backport.
src/h3.c