From: Olivier Houchard Date: Tue, 10 Mar 2020 17:01:25 +0000 (+0100) Subject: MINOR: mux_pt: Don't try to remove the connection from the idle list. X-Git-Tag: v2.2-dev5~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a48e7ece481c2d0408276efc2587b41a283d42b5;p=thirdparty%2Fhaproxy.git MINOR: mux_pt: Don't try to remove the connection from the idle list. 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. --- diff --git a/src/mux_pt.c b/src/mux_pt.c index c44d612ef0..6b154e33bc 100644 --- a/src/mux_pt.c +++ b/src/mux_pt.c @@ -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); } /*