forked-synapse/synapse/federation
Erik Johnston 963f4309fe
Make RateLimiter class check for ratelimit overrides (#9711)
This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.

We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.

Fixes #9663
2021-03-30 12:06:09 +01:00
..
sender Add type hints for the federation sender. (#9681) 2021-03-29 11:43:20 -04:00
transport Spaces summary: call out to other servers (#9653) 2021-03-24 12:45:39 +00:00
__init__.py Remove unused ReplicationLayer 2018-03-13 11:00:04 +00:00
federation_base.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
federation_client.py Spaces summary: call out to other servers (#9653) 2021-03-24 12:45:39 +00:00
federation_server.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
persistence.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
send_queue.py Add type hints for the federation sender. (#9681) 2021-03-29 11:43:20 -04:00
units.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00