1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-04-09 14:43:58 +00:00
This commit is contained in:
Erik Johnston 2017-01-31 13:53:46 +00:00
parent 85c590105f
commit 4c0ec15bdc

View file

@ -134,6 +134,8 @@ class RetryDestinationLimiter(object):
elif exc_val.code == 404 and self.backoff_on_404:
valid_err_code = False
elif exc_val.code == 429:
# 429 is us being aggresively rate limited, so lets rate limit
# ourselves.
valid_err_code = False
elif exc_val.code < 500:
valid_err_code = True