From 94424ed70b34ad8acbd41cfda570ab563ea9d866 Mon Sep 17 00:00:00 2001 From: Matan Perelman Date: Wed, 22 Nov 2023 18:15:43 +0200 Subject: [PATCH] Fix closing connection after read (#7867) --- aiohttp/client_reqrep.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index f05a08637f2..755309ae409 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -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: