]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_pt: Don't try to remove the connection from the idle list.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 10 Mar 2020 17:01:25 +0000 (18:01 +0100)
committerOlivier Houchard <cognet@ci0.org>
Tue, 17 Mar 2020 12:38:18 +0000 (13:38 +0100)
Don't bother trying to remove the connection from the idle list, as the
only connections the mux_pt handles are now the TCP-mode connections, and
those are never added to the idle list.

src/mux_pt.c

index c44d612ef09878624e7c1abc130fd6547ff12443..6b154e33bcd03c80dd14f5ff6886d2e59f23c2b3 100644 (file)
@@ -241,11 +241,6 @@ static void mux_pt_shutr(struct conn_stream *cs, enum cs_shr_mode mode)
                    (mode == CS_SHR_DRAIN));
        if (cs->flags & CS_FL_SHW)
                conn_full_close(cs->conn);
-       /* Maybe we've been put in the list of available idle connections,
-        * get ouf of here
-        */
-       LIST_DEL(&cs->conn->list);
-       LIST_INIT(&cs->conn->list);
 }
 
 static void mux_pt_shutw(struct conn_stream *cs, enum cs_shw_mode mode)
@@ -259,11 +254,6 @@ static void mux_pt_shutw(struct conn_stream *cs, enum cs_shw_mode mode)
                conn_sock_shutw(cs->conn, (mode == CS_SHW_NORMAL));
        else
                conn_full_close(cs->conn);
-       /* Maybe we've been put in the list of available idle connections,
-        * get ouf of here
-        */
-       LIST_DEL(&cs->conn->list);
-       LIST_INIT(&cs->conn->list);
 }
 
 /*