1
0

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

This commit is contained in:
Andrew Morgan
2020-02-25 14:27:28 +00:00
2 changed files with 3 additions and 2 deletions

1
changelog.d/6026.feature Normal file
View File

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

View File

@@ -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):