]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-quic: fix POST with abortonclose
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Apr 2022 14:52:14 +0000 (16:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Apr 2022 16:20:28 +0000 (18:20 +0200)
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.

src/mux_quic.c

index 04f0c71edf4ad4066941812250da7bf5cd4ba7c8..a2d84cd182f3c2e024d4f259bdc94464877a45b4 100644 (file)
@@ -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);