From e98595e4e5f3396ee74531be4141bf178e2180cb Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 21 May 2026 14:40:15 +0200 Subject: [PATCH] MINOR: ssl_sock: remove unneeded check on QMux flags A recent patch has introduced mux_proto_list member. This allows to activate QMux on SSL handshake completion without explicit "proto qmux" setting. Thanks to this change, on SSL handshake completion it is not necessary anymore to check for CO_FL_QMUX_* flags. --- src/ssl_sock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index dd1b9f604..3ab33c990 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -6973,8 +6973,7 @@ struct task *ssl_sock_io_cb(struct task *t, void *context, unsigned int state) mux = !conn_is_back(conn) ? conn_select_mux_fe(conn) : conn_select_mux_be(conn); - if (ctx->conn->flags & (CO_FL_QMUX_RECV|CO_FL_QMUX_SEND) || - mux->init_xprt == XPRT_QMUX) { + if (mux->init_xprt == XPRT_QMUX) { const struct xprt_ops *ops = xprt_get(XPRT_QMUX); void *xprt_ctx_hs = NULL;