before process
This commit is contained in:
parent
a5e6d6d2e8
commit
ee89b6ad03
|
@ -78,7 +78,8 @@ 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:
|
||||||
self._request_handler_task.cancel()
|
if self._request_handler_task:
|
||||||
|
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'))
|
||||||
self.write_response(response)
|
self.write_response(response)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user