Skip to content

Commit 88f3606

Browse files
committed
draining connections do not count as idle connections
1 parent 237494e commit 88f3606

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/AsyncHTTPClient/ConnectionPool/State Machine/HTTPConnectionPool+HTTP2Connections.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,6 @@ extension HTTPConnectionPool {
267267
stats.drainingConnections &+= 1
268268
stats.leasedStreams += usedStreams
269269
precondition(usedStreams >= 0)
270-
if usedStreams == 0 {
271-
stats.idleConnections &+= 1
272-
}
273270
case .closed:
274271
break
275272
}

0 commit comments

Comments
 (0)