summary refs log tree commit diff
path: root/synapse/util/retryutils.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean up some code in the retry logic (#6017)Richard van der Hoff2019-09-111-16/+13
| | | | * remove some unused code * make things which were constants into constants for efficiency and clarity
* Replace returnValue with return (#5736)Amber Brown2019-07-231-9/+7
|
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-2/+2
|
* Call RetryLimiter correctly (#5340)Richard van der Hoff2019-06-041-1/+6
| | | Fixes a regression introduced in #5335.
* Avoid rapidly backing-off a server if we ignore the retry intervalRichard van der Hoff2019-06-031-23/+37
|
* Improve the logging when handling a federation transaction (#3904)Richard van der Hoff2018-09-191-1/+1
| | | | | | | | | | Let's try to rationalise the logging that happens when we are processing an incoming transaction, to make it easier to figure out what is going wrong when they take ages. In particular: - make everything start with a [room_id event_id] prefix - make sure we log a warning when catching exceptions rather than just turning them into other, more cryptic, exceptions.
* run isortAmber Brown2018-07-091-5/+4
|
* Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+2
| | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object.
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-0/+12
| | | | | | Add federation_domain_whitelist gives a way to restrict which domains your HS is allowed to federate with. useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
| | | | what could possibly go wrong
* Merge pull request #2050 from matrix-org/rav/federation_backoffRichard van der Hoff2017-03-231-4/+25
|\ | | | | push federation retry limiter down to matrixfederationclient
| * Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-2/+11
| | | | | | | | | | Add a param to the federation client which lets us ignore historical backoff data for federation queries, and set it for a handful of operations.
| * push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-2/+14
| | | | | | | | | | rather than having to instrument everywhere we make a federation call, make the MatrixFederationHttpClient manage the retry limiter.
* | Fix a couple of logcontext leaksRichard van der Hoff2017-03-231-2/+3
|/ | | | | Use preserve_fn to correctly manage the logcontexts around things we don't want to yield on.
* Correctly raise exceptions for ratelimitng. Ratelimit on 401Erik Johnston2017-02-011-3/+5
|
* Remove explicit < 400 check as apparently this is confusingErik Johnston2017-01-311-3/+1
|
* CommentErik Johnston2017-01-311-0/+2
|
* CommentErik Johnston2017-01-311-0/+4
|
* Better handle 404 response for federation /send/Erik Johnston2017-01-311-2/+13
|
* Use correct varErik Johnston2016-11-241-1/+1
|
* Correctly handle 500's and 429 on federationErik Johnston2016-11-241-1/+1
|
* Invalidate retry cache in both directionsErik Johnston2016-11-221-9/+12
|
* Fix retry utils to check if the exception is a subclass of CMEMark Haines2016-07-281-1/+1
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Retry dead servers a lot less oftenErik Johnston2015-11-021-2/+5
|
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-1/+1
|
* Remove unused importErik Johnston2015-02-181-2/+0
|
* Remove spurious comma. Remove temp run_on_reactorErik Johnston2015-02-181-2/+1
|
* Temporarily add a run_on_reactor() callErik Johnston2015-02-181-0/+3
|
* s/self._clock/self.clock/Erik Johnston2015-02-181-1/+1
|
* More docsErik Johnston2015-02-181-1/+5
|
* Docs.Erik Johnston2015-02-181-1/+33
|
* Try to only back off if we think we failed to connect to the remoteErik Johnston2015-02-171-2/+8
|
* Only update destination_retry_timings if we have succeeded when retryingErik Johnston2015-02-171-0/+3
|
* Remove spurious selfErik Johnston2015-02-171-1/+1
|
* Add per server retry limiting.Erik Johnston2015-02-171-0/+108
Factor out the pre destination retry logic from TransactionQueue so it can be reused in both get_pdu and crypto.keyring