Skip to content

Commit

Permalink
Restore the force_close method to the ResponseHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 19, 2024
1 parent 7bbbd12 commit 1871c4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp/client_proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def should_close(self) -> bool:
or self._tail
)

def force_close(self) -> None:
self._should_close = True

def close(self) -> None:
transport = self.transport
if transport is not None:
Expand Down

0 comments on commit 1871c4e

Please sign in to comment.