]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: backend: don't rely on mux_pt_ops in connect_server()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 May 2018 14:53:38 +0000 (16:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Aug 2018 07:54:22 +0000 (09:54 +0200)
The comment above the change remains true. We assume there is always 1
conn_stream per outgoing connectionq. Today, it is always true because H2 is not
supported yet for server connections.

src/backend.c

index a52eaccc2490e3efc8dd7594d0b94545b7268620..50ef3b7d2458a9ca9cb79352f50d1f5dc010b382 100644 (file)
@@ -1123,7 +1123,7 @@ int connect_server(struct stream *s)
                         */
                        srv_cs = srv_conn->mux_ctx;
 
-                       if (srv_conn->mux == &mux_pt_ops && srv_cs->data) {
+                       if (srv_cs->data) {
                                si_detach_endpoint(srv_cs->data);
                                if (old_cs && !(old_cs->conn->flags & CO_FL_PRIVATE)) {
                                        si_attach_cs(srv_cs->data, old_cs);