]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: check quic-conn return code on Tx
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 26 Sep 2022 13:02:31 +0000 (15:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Oct 2022 09:08:32 +0000 (11:08 +0200)
Inspect return code of qc_send_mux(). If quic-conn layer reports an
error, this will interrupt the current emission process.

This should be backported up to 2.6.

src/mux_quic.c

index 0482e92bc7bf7dfa8d2c5f255a9fa5ec14654ee8..3baab767f4cca4a7ebd449ffbb5077d6aaf9a6f8 100644 (file)
@@ -1399,7 +1399,8 @@ static int qc_send_frames(struct qcc *qcc, struct list *frms)
 
        LIST_INIT(&qcc->send_retry_list);
 
-       qc_send_mux(qcc->conn->handle.qc, frms);
+       if (!qc_send_mux(qcc->conn->handle.qc, frms))
+               goto err;
 
        /* If there is frames left at this stage, transport layer is blocked.
         * Subscribe on it to retry later.