]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h2: Reset streams with NO_ERROR code if full response was already...
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Mar 2025 15:26:35 +0000 (16:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 20 Mar 2025 07:36:06 +0000 (08:36 +0100)
commite87397bc7d3b386c95d1489d19f29e6d5f1f1482
tree443cfd26121a366a4492d0d95b72b0dd96a5d3d9
parent2fb627091033881256aa4057385ceeea692927c0
BUG/MINOR: mux-h2: Reset streams with NO_ERROR code if full response was already sent

On frontend side, when a stream is shut while the response was already fully
sent, it was cancelled by sending a RST_STREAM(CANCEL) frame. However, it is
not accurrate. CANCEL error code must only be used if the response headers
were sent, but not the full response. As stated in the RFC 9113, when the
response was fully sent, to stop the request sending, a RST_STREAM with an
error code of NO_ERROR must be sent.

This patch should solve the issue #1219. It must be backported to all stable
versions.
src/mux_h2.c