Make it so the proxy's _make_request method's error handler catches timeouts.
This commit is contained in:
@@ -507,8 +507,7 @@ class Controller(object):
|
|||||||
return resp.status, resp.reason, resp.read()
|
return resp.status, resp.reason, resp.read()
|
||||||
elif resp.status == 507:
|
elif resp.status == 507:
|
||||||
self.error_limit(node)
|
self.error_limit(node)
|
||||||
except Exception:
|
except (Exception, Timeout):
|
||||||
self.error_limit(node)
|
|
||||||
self.exception_occurred(node, self.server_type,
|
self.exception_occurred(node, self.server_type,
|
||||||
_('Trying to %(method)s %(path)s') %
|
_('Trying to %(method)s %(path)s') %
|
||||||
{'method': method, 'path': path})
|
{'method': method, 'path': path})
|
||||||
|
Reference in New Issue
Block a user