mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-11 13:32:50 +02:00
MINOR: backend: fix comment when killing idle conns
Previously, if a server reached its pool-high-count limit, connection
were killed on connect_server() when reuse was not possible. However,
this is now performed even if reuse is done since the following patch :
b3397367dc
MEDIUM: connections: Kill connections even if we are reusing one.
Thus, adjust the related comment to reflect this state.
This commit is contained in:
@@ -1723,10 +1723,8 @@ int connect_server(struct stream *s)
|
||||
*/
|
||||
|
||||
if (ha_used_fds > global.tune.pool_high_count && srv) {
|
||||
/* We have more FDs than deemed acceptable, attempt to kill an idling connection. */
|
||||
struct connection *tokill_conn = NULL;
|
||||
/* We can't reuse a connection, and e have more FDs than deemd
|
||||
* acceptable, attempt to kill an idling connection
|
||||
*/
|
||||
/* First, try from our own idle list */
|
||||
HA_SPIN_LOCK(IDLE_CONNS_LOCK, &idle_conns[tid].idle_conns_lock);
|
||||
if (!LIST_ISEMPTY(&srv->per_thr[tid].idle_conn_list)) {
|
||||
|
||||
Reference in New Issue
Block a user