]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-quic: Drain the given amount of data in qcs_http_reset_buf()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 15:22:29 +0000 (17:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 18:51:41 +0000 (20:51 +0200)
commit0771f4757e3302567724d7e3c2b44e38698bb443
tree322d23b104c954e9b867686bea38440cdeb5b9f8
parent86b664445d1bff47036d2fe53ca6e908d3d759f3
BUG/MEDIUM: mux-quic: Drain the given amount of data in qcs_http_reset_buf()

Name of qcs_http_reset_buf() function is confusing. But the comment is
clear. In this function, a given amount of HTX data must be cleared from the
buffer. However, concretely, the whole buffer was always reset. Most of time
it is equivalent but it could be possible to keep unsent data in the
buffer. For instance, when a filter is registered on the data forwarding
stage.

So, instead of calling htx_reset(), htx_drain() must be used.

This patch must be backported to all supported version.
src/qcm_http.c