From 7bff576ebb5e9cc8d081f0a7f7b9cf657e5a3d13 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 10 Jun 2024 11:51:07 +0200 Subject: [PATCH] BUG/MINOR: mux-h1: Use the right variable to set NEGO_FF_FL_EXACT_SIZE flag Instead of setting this flag on the ones used for the zero-copy negociation, it is set on the connection flags used for xprt->rcv_buf() call. Fortunately, there is no real consequence. The only visible effect is the chunk size that is written on 8 bytes for no reason. This patch is related to issue #2598. It must be backported to 3.0. --- src/mux_h1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 4973527a9..0c173153c 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -4862,7 +4862,7 @@ static int h1_fastfwd(struct stconn *sc, unsigned int count, unsigned int flags) ret = 0; if (h1m->state == H1_MSG_DATA && (h1m->flags & (H1_MF_CHNK|H1_MF_CLEN)) && count > h1m->curr_len) { - flags |= NEGO_FF_FL_EXACT_SIZE; + nego_flags |= NEGO_FF_FL_EXACT_SIZE; count = h1m->curr_len; }