]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: mux-quic: protect qcc_io_process for QMux
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Apr 2026 10:00:18 +0000 (12:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Apr 2026 12:02:04 +0000 (14:02 +0200)
Use conn_is_quic() prior to quic_conn manipulation in qcc_io_process().
This will be necessary to ensure compatibility with the new QMux
protocol.

src/mux_quic.c

index 4e3d8b670d54a289a54855e526e4f8a2b394f7d1..1abc8a407e473230238eb74cea157e282679bfc3 100644 (file)
@@ -3344,7 +3344,7 @@ static int qcc_io_process(struct qcc *qcc)
                /* If using listener socket, soft-stop is not supported. The
                 * connection must be closed immediately.
                 */
-               if (!qc_test_fd(qcc->conn->handle.qc)) {
+               if (conn_is_quic(qcc->conn) && !qc_test_fd(qcc->conn->handle.qc)) {
                        TRACE_DEVEL("proxy disabled with listener socket, closing connection", QMUX_EV_QCC_WAKE, qcc->conn);
                        qcc->conn->flags |= (CO_FL_SOCK_RD_SH|CO_FL_SOCK_WR_SH);
                        qcc_io_send(qcc);