mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MEDIUM: connections: Kill connections even if we are reusing one.
In connect_server(), if we notice we have more file descriptors opened than we should, there's no reason not to close a connection just because we're reusing one, so do it anyway.
This commit is contained in:
parent
a41bb0b6c4
commit
b3397367dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user