Skip to content

Commit 5469922

Browse files
authored
Possible fix for clients waiting stat leak (#68)
1 parent ccbca66 commit 5469922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pool.rs

+2
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,14 @@ impl ConnectionPool {
215215
// as per request. If no specific role is requested, the first
216216
// available will be chosen.
217217
if address.role != role {
218+
self.stats.client_disconnecting(process_id, address.id);
218219
continue;
219220
}
220221

221222
allowed_attempts -= 1;
222223

223224
if self.is_banned(address, shard, role) {
225+
self.stats.client_disconnecting(process_id, address.id);
224226
continue;
225227
}
226228

0 commit comments

Comments
 (0)