Don't fail timeouts when slow request being processed

This commit is contained in:
Andrew Godwin 2016-04-03 20:56:48 -07:00
parent 7c330e71fa
commit 074f73acb4

View File

@ -184,6 +184,8 @@ class WebRequest(http.Request):
""" """
Returns the time since the start of the request. Returns the time since the start of the request.
""" """
if not hasattr(self, "request_start"):
return 0
return time.time() - self.request_start return time.time() - self.request_start
def basic_error(self, status, status_text, body): def basic_error(self, status, status_text, body):