From: Amaury Denoyelle Date: Fri, 22 Apr 2022 14:52:14 +0000 (+0200) Subject: BUG/MINOR: mux-quic: fix POST with abortonclose X-Git-Tag: v2.6-dev7~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6df6b440a0bb22dd6964151b86d6142a8d7d5b5;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-quic: fix POST with abortonclose Remove CS_EP_EOS set erroneously on qc_rcv_buf(). This fixes POST with abortonclose. Previously, request was preemptively aborted by haproxy due to the incorrect EOS flag. For the moment, EOS flag is not set anymore. It should be set to warn about a premature close from the client. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index 04f0c71edf..a2d84cd182 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -1273,7 +1273,7 @@ static size_t qc_rcv_buf(struct conn_stream *cs, struct buffer *buf, cs->endp->flags |= CS_EP_ERROR; if (fin) - cs->endp->flags |= (CS_EP_EOI|CS_EP_EOS); + cs->endp->flags |= CS_EP_EOI; if (b_size(&qcs->rx.app_buf)) { b_free(&qcs->rx.app_buf);