Add a cancel message to the aiohttp compatiblity layer (#97058)

This commit is contained in:
J. Nick Koston 2023-07-22 17:06:32 -05:00 committed by GitHub
parent fe0fe19be9
commit e60313628f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ class CancelOnDisconnectRequestHandler(web_protocol.RequestHandler):
task_handler = self._task_handler
super().connection_lost(exc)
if task_handler is not None:
task_handler.cancel()
task_handler.cancel("aiohttp connection lost")
def restore_original_aiohttp_cancel_behavior() -> None: