Skip to content
Snippets Groups Projects
Commit c9c82e8f authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #320 from matrix-org/appservice-retry-cap

Cap the time to retry txns to appservices to 8.5 minutes
parents 87da71ba 4dec901c
No related branches found
No related tags found
No related merge requests found
......@@ -224,8 +224,8 @@ class _Recoverer(object):
self.clock.call_later((2 ** self.backoff_counter), self.retry)
def _backoff(self):
# cap the backoff to be around 18h => (2^16) = 65536 secs
if self.backoff_counter < 16:
# cap the backoff to be around 8.5min => (2^9) = 512 secs
if self.backoff_counter < 9:
self.backoff_counter += 1
self.recover()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment