mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 02:55:46 +03:00
772e8c2385
When there are many synchronous requests waiting on a `_PerHostRatelimiter`, each request will be started recursively just after the previous request has completed. Under the right conditions, this leads to stack exhaustion. A common way for requests to become synchronous is when the remote client disconnects early, because the homeserver is overloaded and slow to respond. Avoid stack exhaustion under these conditions by deferring subsequent requests until the next reactor tick. Fixes #14480. Signed-off-by: Sean Quah <seanq@matrix.org> |
||
---|---|---|
.. | ||
.gitignore | ||
14629.feature | ||
14747.feature | ||
14749.misc | ||
14773.doc | ||
14799.bugfix | ||
14803.doc | ||
14807.misc | ||
14811.feature | ||
14812.bugfix | ||
14816.misc | ||
14819.misc | ||
14821.misc | ||
14822.misc |