From: Amaury Denoyelle Date: Mon, 16 Nov 2026 14:15:29 +0000 (+0100) Subject: BUG/MINOR: hq-interop: skip zero-copy with large buffers X-Git-Url: https://git.kaiwu.me/http/ngx_http_perl_module.html?a=commitdiff_plain;h=7047e6f4718ca3d2c9b6a2cea22ded64c8d4d308;p=haproxy.git BUG/MINOR: hq-interop: skip zero-copy with large buffers Large buffers were introduced in 3.4. They may be used in channels while muxes continue to rely on normal-sized objects. In this case, zero-copy must be disabled when sending data. Most muxes were adapted but the hq-interop layer was forgotten. This patch fixes this by adding a similar check to the one already present in HTTP/3. This must be backported up to 3.4. --- diff --git a/src/hq_interop.c b/src/hq_interop.c index c9faa8581..f7918771e 100644 --- a/src/hq_interop.c +++ b/src/hq_interop.c @@ -282,7 +282,7 @@ static size_t hq_interop_snd_buf(struct qcs *qcs, struct buffer *buf, goto end; } - if (unlikely(fsize == count && + if (unlikely(fsize == count && b_size(res) == b_size(buf) && !b_data(res) && htx_nbblks(htx) == 1 && btype == HTX_BLK_DATA)) { void *old_area = res->area;