4
0
mirror of https://github.com/1f349/dendrite.git synced 2025-03-09 13:43:09 +00:00

4 Commits

Author SHA1 Message Date
Kegsay
6d6bb75137
Add FederationClient interface to federationsender ()
* Add FederationClient interface to federationsender

- Use a shim struct in HTTP mode to keep the same API as `FederationClient`.
- Use `federationsender` instead of `FederationClient` in `keyserver`.

* Pointers not values

* Review comments

* Fix unit tests

* Rejig backoff

* Unbreak test

* Remove debug logs

* Review comments and linting
2020-08-20 17:03:07 +01:00
Neil Alexander
0fea056db4
Change backoff behaviour so that Failure returns planned end time () 2020-08-20 14:58:53 +01:00
Neil Alexander
58998e9874
Backoff fixes ()
* Backoff fixes

* Update comments

* Fix destination queue

* Log why we're blacklisting

* Fix logic fail

* Logging level

* Fix bug

* Maybe fix that bug after all

* Fix debug output

* Fix tests
2020-08-07 18:50:29 +01:00
Neil Alexander
1e71fd645e
Persistent federation sender blacklist ()
* Initial persistence of blacklists

* Move statistics folder

* Make MaxFederationRetries configurable

* Set lower failure thresholds for Yggdrasil demos

* Still write events into database for blacklisted hosts (they can be tidied up later)

* Review comments
2020-07-22 17:01:29 +01:00