]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MAJOR: h3: do not panic on HTX_FL_PARSING_ERROR after htx_xfer()
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Nov 2026 16:41:01 +0000 (17:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Nov 2026 17:38:15 +0000 (18:38 +0100)
After various tests and a long code analysis, it turns out that this
condition which was thought never to be triggerable can finally be
triggered if some data cannot be transferred to the channel due to
the reserve. The condition is rare but not impossible, so let's get
rid of it. This patch must be backported to all stable releases.

src/qcm_http.c

index 8eea0dad363572d16d78e133d06fd576b9fe10f8..00dd9bebef7cc0d4fb93bc79a2961170918082b3 100644 (file)
@@ -44,7 +44,6 @@ size_t qcs_http_rcv_buf(struct qcs *qcs, struct buffer *buf, size_t count,
        }
 
        htx_xfer(cs_htx, qcs_htx, count, HTX_XFER_DEFAULT);
-       BUG_ON(qcs_htx->flags & HTX_FL_PARSING_ERROR);
 
        /* EOM was copied to cs_htx if all data were copied. */
        if (htx_msg_ended(cs_htx)) {