Remove the cap on federation retry interval. (#6026)

Essentially the intention here is to end up blacklisting servers which never
respond to federation requests.

Fixes https://github.com/matrix-org/synapse/issues/5113.
code_spécifique_watcha
Richard van der Hoff 6 years ago committed by GitHub
parent 0388beafe4
commit 3d882a7ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/6026.feature
  2. 4
      synapse/util/retryutils.py

@ -0,0 +1 @@
Stop sending federation transactions to servers which have been down for a long time.

@ -28,8 +28,8 @@ MIN_RETRY_INTERVAL = 10 * 60 * 1000
# how much we multiply the backoff by after each subsequent fail
RETRY_MULTIPLIER = 5
# a cap on the backoff
MAX_RETRY_INTERVAL = 24 * 60 * 60 * 1000
# a cap on the backoff. (Essentially none)
MAX_RETRY_INTERVAL = 2 ** 63
class NotRetryingDestination(Exception):

Loading…
Cancel
Save