Open jryans opened 3 years ago
Faced with the same issue on matrixdotorg/synapse:v1.73.0
The relevant logic is https://github.com/matrix-org/synapse/blob/6a6e1e8c0711939338f25d8d41d1e4d33d984949/synapse/api/ratelimiting.py#L294-L309 and https://github.com/matrix-org/synapse/blob/6a6e1e8c0711939338f25d8d41d1e4d33d984949/synapse/api/ratelimiting.py#L95-L204 if anyone wants to take a look.
I would guess that we hit this branch: https://github.com/matrix-org/synapse/blob/6a6e1e8c0711939338f25d8d41d1e4d33d984949/synapse/api/ratelimiting.py#L198-L202
(Aside: can_do_action
probably ought to return a duration rather than a timepoint?)
Description
I wanted to disable all Synapse send rate limits for local development. I tried:
After restarting and trying to send a message, Synapse would reply with:
The negative
retry_after_ms
value may lead to unexpected client behaviour. Element Web has been fixed just now, but prior to that it would retry infinitely with no delay. 😱Steps to reproduce
retry_after_ms
value in the error replyVersion information
pip install -e .
from Git clone