Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove the cap on federation retry interval.
Browse files Browse the repository at this point in the history
Essentially the intention here is to end up blacklisting servers which never
respond to federation requests.

Fixes #5113.
  • Loading branch information
richvdh committed Sep 12, 2019
1 parent 59975f9 commit d0a69bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/6026.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop sending federation transactions to servers which have been down for a long time.
4 changes: 2 additions & 2 deletions synapse/util/retryutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# 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):
Expand Down

0 comments on commit d0a69bb

Please sign in to comment.