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. (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 25, 2020
2 parents d8e34ad + 3d882a7 commit 7cb3169
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 7cb3169

Please sign in to comment.