From: Amaury Denoyelle Date: Thu, 21 May 2026 12:40:15 +0000 (+0200) Subject: MINOR: ssl_sock: remove unneeded check on QMux flags X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e98595e4e5f3396ee74531be4141bf178e2180cb;p=thirdparty%2Fhaproxy.git 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. --- 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;