Skip to content
Snippets Groups Projects
  1. Jan 13, 2023
    • Sean Quah's avatar
      Fix stack overflow in `_PerHostRatelimiter` due to synchronous requests (#14812) · 772e8c23
      Sean Quah authored
      
      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: default avatarSean Quah <seanq@matrix.org>
      772e8c23
  2. Dec 02, 2022
  3. Sep 23, 2021
  4. Apr 14, 2021
  5. Apr 08, 2021
  6. Jul 05, 2019
    • Richard van der Hoff's avatar
      Fixes to the federation rate limiter (#5621) · 9481707a
      Richard van der Hoff authored
      - 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
      9481707a
Loading