Skip to content

Commit

Permalink
Fix closing connection after read (aio-libs#7867)
Browse files Browse the repository at this point in the history
  • Loading branch information
matan1008 committed Nov 22, 2023
1 parent ccf74bb commit 94424ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ async def read(self) -> bytes:
elif self._released: # Response explicitly released
raise ClientConnectionError("Connection closed")

await self._wait_released() # Underlying connection released
return self._body

def get_encoding(self) -> str:
Expand Down

0 comments on commit 94424ed

Please sign in to comment.