From cd363e02463371f4c66d9214c517a198add9a008 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 17 Mar 2026 19:08:54 +0100 Subject: [PATCH] MEDIUM: mux-h2: Stop dealing with HTX flags transfer in h2_rcv_buf() In h2_rcv_buf(), HTX flags are transfer with data when htx_xfer() is called. There is no reason to continue to deal with them in the H2 mux. In addition, there is no reason to set SE_FL_EOI flag when a parsing error was reported. This part was added before the stconn era. Nowadays, when an HTX parsing error is reported, an error on the sedesc should also be reported. --- src/mux_h2.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 4508b1859..113f68612 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -7902,15 +7902,6 @@ static size_t h2_rcv_buf(struct stconn *sc, struct buffer *buf, size_t count, in count -= htx_xfer(buf_htx, h2s_htx, count, HTX_XFER_DEFAULT); - if (h2s_htx->flags & HTX_FL_PARSING_ERROR) { - buf_htx->flags |= HTX_FL_PARSING_ERROR; - if (htx_is_empty(buf_htx)) - se_fl_set(h2s->sd, SE_FL_EOI); - } - else if (htx_is_empty(h2s_htx)) { - buf_htx->flags |= (h2s_htx->flags & HTX_FL_EOM); - } - htx_to_buf(buf_htx, buf); htx_to_buf(h2s_htx, rxbuf); ret -= h2s_htx->data; -- 2.47.3