Possible fix for clients waiting stat leak (#68)

This commit is contained in:
Lev Kokotov
2022-05-14 21:35:33 -07:00
committed by GitHub
parent ccbca66e7a
commit 54699222f8

View File

@@ -215,12 +215,14 @@ impl ConnectionPool {
// as per request. If no specific role is requested, the first
// available will be chosen.
if address.role != role {
self.stats.client_disconnecting(process_id, address.id);
continue;
}
allowed_attempts -= 1;
if self.is_banned(address, shard, role) {
self.stats.client_disconnecting(process_id, address.id);
continue;
}