Skip to content

Commit

Permalink
ensure writer cleaned up before _release_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 8, 2023
1 parent 6e1a017 commit 885afdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,12 @@ def _response_eof(self) -> None:
):
return

self._cleanup_writer()
self._release_connection()
else:
self._cleanup_writer()

Check warning on line 922 in aiohttp/client_reqrep.py

View check run for this annotation

Codecov / codecov/patch

aiohttp/client_reqrep.py#L922

Added line #L922 was not covered by tests

self._closed = True
self._cleanup_writer()

@property
def closed(self) -> bool:
Expand Down

0 comments on commit 885afdb

Please sign in to comment.