]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: fix error code on incomplete request
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Nov 2026 14:36:05 +0000 (15:36 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Nov 2026 16:31:36 +0000 (17:31 +0100)
commit44340ca85d498eef457a114b51710e5bb35d5a9d
tree05f963a0888ef51a84e863ab0d329f7c99dbdf8a
parentcf19fffaed0c950c64904fe8e045a0df5a8db53d
BUG/MINOR: h3: fix error code on incomplete request

HTTP/3 parser validates that a request has been received when FIN is
signalled by the peer on a request stream. FIN signal may be conveyed
with an extension frame. In this case, if no header was received, the
request is invalid and the stream is closed with an error.

This patch simply fixes the reported error code to H3_REQUEST_INCOMPLETE
as recommended by RFC 9114 when the issue occurs on the frontend side.
H3_MESSAGE_ERROR is kept on the backend side as there is no specific
error code defined for an incomplete response.

This must be backported up to 2.8. Ensure enum is adapted for 2.8 as the
name changed after.
src/h3.c