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

Remove the cap on federation retry interval. #6026

Merged
merged 1 commit into from
Sep 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove the cap on federation retry interval.
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
commit d0a69bb801eb666d60a30021ac90f7f0237a2345
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
@@ -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):