turn back on per-request transaction retries, so that every time we try to hit a dead server we actually end up hammering 5 times :|

pull/22/head
Matthew Hodgson 2014-12-10 10:28:27 +00:00
parent 08aceea82e
commit 0f4dcab238
1 changed files with 3 additions and 4 deletions

View File

@ -101,10 +101,9 @@ class MatrixFederationHttpClient(object):
]
)
# was 5; for now, let's only try once at the HTTP layer and then
# rely on transaction-layer retries for exponential backoff and
# getting the message through.
retries_left = 0
# XXX: Would be much nicer to retry only at the transaction-layer
# (once we have reliable transactions in place)
retries_left = 5
endpoint = self._getEndpoint(reactor, destination)