Skip to content

Commit 5dd86d0

Browse files
committed
make sure tests pass for aio-libs#253
1 parent 73016c4 commit 5dd86d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aiohttp/connector.py

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ def _release(self, key, req, transport, protocol, *, should_close=False):
199199

200200
reader = protocol.reader
201201
if should_close or (reader.output and not reader.output.at_eof()):
202+
conns = self._conns.get(key)
203+
if conns is not None and len(conns) == 0:
204+
self._conns.pop(key, None)
202205
transport.close()
203206
else:
204207
conns = self._conns.get(key)

0 commit comments

Comments
 (0)