before process
This commit is contained in:
parent
a5e6d6d2e8
commit
ee89b6ad03
|
@ -78,6 +78,7 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self._timeout_handler = \
|
self._timeout_handler = \
|
||||||
self.loop.call_later(time_left, self.connection_timeout)
|
self.loop.call_later(time_left, self.connection_timeout)
|
||||||
else:
|
else:
|
||||||
|
if self._request_handler_task:
|
||||||
self._request_handler_task.cancel()
|
self._request_handler_task.cancel()
|
||||||
response = self.error_handler.response(
|
response = self.error_handler.response(
|
||||||
self.request, RequestTimeout('Request Timeout'))
|
self.request, RequestTimeout('Request Timeout'))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user