mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Upper bound the backoff.
This commit is contained in:
parent
10766f1e93
commit
64345b7559
@ -214,6 +214,8 @@ class _Recoverer(object):
|
||||
self.backoff_counter = 1
|
||||
yield self.retry()
|
||||
else:
|
||||
# cap the backoff to be around 18h => (2^16) = 65536 secs
|
||||
if self.backoff_counter < 16:
|
||||
self.backoff_counter += 1
|
||||
self.recover()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user