From: Christopher Faulet Date: Wed, 28 Feb 2018 09:40:42 +0000 (+0100) Subject: MINOR: backend: Try to find the best mux for outgoing connections X-Git-Tag: v1.9-dev2~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cc7afa04e6856b93102bc0078bf505db3dea1bf;p=thirdparty%2Fhaproxy.git MINOR: backend: Try to find the best mux for outgoing connections For now, there is no effect. mux-pt will always be used because this is only available mux for backend connections. --- diff --git a/src/backend.c b/src/backend.c index f7e5dbddfd..a52eaccc24 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1189,8 +1189,7 @@ int connect_server(struct stream *s) else return SF_ERR_INTERNAL; /* how did we get there ? */ - /* XXX: Pick the right mux, when we finally have one */ - conn_install_mux(srv_conn, &mux_pt_ops, srv_cs); + conn_install_best_mux(srv_conn, s->be->mode == PR_MODE_HTTP, srv_cs); /* process the case where the server requires the PROXY protocol to be sent */ srv_conn->send_proxy_ofs = 0;