mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 06:29:27 -05:00
Comment
This commit is contained in:
parent
85c590105f
commit
4c0ec15bdc
@ -134,6 +134,8 @@ class RetryDestinationLimiter(object):
|
|||||||
elif exc_val.code == 404 and self.backoff_on_404:
|
elif exc_val.code == 404 and self.backoff_on_404:
|
||||||
valid_err_code = False
|
valid_err_code = False
|
||||||
elif exc_val.code == 429:
|
elif exc_val.code == 429:
|
||||||
|
# 429 is us being aggresively rate limited, so lets rate limit
|
||||||
|
# ourselves.
|
||||||
valid_err_code = False
|
valid_err_code = False
|
||||||
elif exc_val.code < 500:
|
elif exc_val.code < 500:
|
||||||
valid_err_code = True
|
valid_err_code = True
|
||||||
|
Loading…
Reference in New Issue
Block a user