From: Amaury Denoyelle Date: Tue, 26 Jan 2021 13:35:25 +0000 (+0100) Subject: CLEANUP: backend: remove an obsolete comment on conn_backend_get X-Git-Tag: v2.4-dev7~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e25bcd1e2cf9beb6d976f52b79a4721ecd679f;p=thirdparty%2Fhaproxy.git CLEANUP: backend: remove an obsolete comment on conn_backend_get This comment was valid for haproxy 1.8 but now it is obsolete. --- diff --git a/src/backend.c b/src/backend.c index e3170ee9b4..51554fe069 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1301,12 +1301,7 @@ int connect_server(struct stream *s) srv->curr_idle_nb > 0) { srv_conn = conn_backend_get(s, srv, 0); } - /* If we've picked a connection from the pool, we now have to - * detach it. We may have to get rid of the previous idle - * connection we had, so for this we try to swap it with the - * other owner's. That way it may remain alive for others to - * pick. - */ + if (srv_conn) reuse = 1; }