diff --git a/src/backend.c b/src/backend.c index cae3f20c5..96d8d17ad 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1256,8 +1256,7 @@ int connect_server(struct stream *s) } } - if (((!reuse || (srv_conn && (srv_conn->flags & CO_FL_WAIT_XPRT))) - && ha_used_fds > global.tune.pool_high_count) && srv && srv->idle_conns) { + if (ha_used_fds > global.tune.pool_high_count && srv && srv->idle_conns) { struct connection *tokill_conn; /* We can't reuse a connection, and e have more FDs than deemd