diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-05 11:10:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 11:10:19 +0100 |
commit | 9481707a52a89022bc5d99c181ceb9e7ec9ec9e9 (patch) | |
tree | 08e06996e3f794da5acfcc266c27ddf5f48e8dd8 /tests/utils.py | |
parent | Make errors about email password resets much clearer (#5616) (diff) | |
download | synapse-9481707a52a89022bc5d99c181ceb9e7ec9ec9e9.tar.xz |
Fixes to the federation rate limiter (#5621)
- Put the default window_size back to 1000ms (broken by #5181) - Make the `rc_federation` config actually do something - fix an off-by-one error in the 'concurrent' limit - Avoid creating an unused `_PerHostRatelimiter` object for every single incoming request
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/utils.py b/tests/utils.py index d8e55b0801..8a94ce0b47 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -152,12 +152,6 @@ def default_config(name, parse=False): "mau_stats_only": False, "mau_limits_reserved_threepids": [], "admin_contact": None, - "rc_federation": { - "reject_limit": 10, - "sleep_limit": 10, - "sleep_delay": 10, - "concurrent": 10, - }, "rc_message": {"per_second": 10000, "burst_count": 10000}, "rc_registration": {"per_second": 10000, "burst_count": 10000}, "rc_login": { |