Skip to content

Commit

Permalink
make sure tests pass for aio-libs#253
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraem committed Jan 22, 2015
1 parent 73016c4 commit 5dd86d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ def _release(self, key, req, transport, protocol, *, should_close=False):

reader = protocol.reader
if should_close or (reader.output and not reader.output.at_eof()):
conns = self._conns.get(key)
if conns is not None and len(conns) == 0:
self._conns.pop(key, None)
transport.close()
else:
conns = self._conns.get(key)
Expand Down

0 comments on commit 5dd86d0

Please sign in to comment.