From: Christopher Faulet Date: Fri, 18 Sep 2026 08:11:16 +0000 (+0200) Subject: MINOR: mux-h1: Only handle RAW_DATA blocks when emitting tunneled data X-Git-Tag: v3.5-dev8~140 X-Git-Url: https://git.kaiwu.me/$%7BISSUES%7D/static/gitweb.js?a=commitdiff_plain;h=298dfe11dd5d06477ee08a70bcce350803bd2f2a;p=haproxy.git MINOR: mux-h1: Only handle RAW_DATA blocks when emitting tunneled data As expected, now the changes to properly handle the RAW_DATA blocs were performed, the h1_make_tunnel() function is updated to only handle RAW_DATA blocks. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index 63ba86fe4..5ae5a7bae 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -3326,7 +3326,7 @@ static size_t h1_make_tunnel(struct h1s *h1s, struct h1m *h1m, struct buffer *bu */ if (!b_data(&h1c->obuf) && htx_nbblks(htx) == 1 && - htx_is_data_type(htx_get_blk_type(blk)) && + htx_get_blk_type(blk) == HTX_BLK_RAW_DATA && htx_get_blksz(blk) == count && b_size(&h1c->obuf) == b_size(buf)) { void *old_area; @@ -3358,7 +3358,7 @@ static size_t h1_make_tunnel(struct h1s *h1s, struct h1m *h1m, struct buffer *bu sz = htx_get_blksz(blk); vlen = sz; - if (htx_is_data_type(type)) { + if (type == HTX_BLK_RAW_DATA) { if (vlen > count) { /* Get the maximum amount of data we can xferred */ vlen = count;