Skip to content
Snippets Groups Projects
  1. Jun 17, 2021
  2. Jun 15, 2021
  3. Jun 14, 2021
    • Richard van der Hoff's avatar
      Extend `ResponseCache` to pass a context object into the callback (#10157) · d7808a2d
      Richard van der Hoff authored
      This is the first of two PRs which seek to address #8518. This first PR lays the groundwork by extending ResponseCache; a second PR (#10158) will update the SyncHandler to actually use it, and fix the bug.
      
      The idea here is that we allow the callback given to ResponseCache.wrap to decide whether its result should be cached or not. We do that by (optionally) passing a ResponseCacheContext into it, which it can modify.
      Unverified
      d7808a2d
  4. Jun 09, 2021
  5. Jun 07, 2021
    • 14mRh4X0r's avatar
      Always update AS last_pos, even on no events (#10107) · 8942e23a
      14mRh4X0r authored
      
      Fixes #1834.
      
      `get_new_events_for_appservice` internally calls `get_events_as_list`, which will filter out any rejected events. If all returned events are filtered out, `_notify_interested_services` will return without updating the last handled stream position. If there are 100 consecutive such events, processing will halt altogether.
      
      Breaking the loop is now done by checking whether we're up-to-date with `current_max` in the loop condition, instead of relying on an empty `events` list.
      
      
      Signed-off-by: default avatarWillem Mulder <14mRh4X0r@gmail.com>
      Unverified
      8942e23a
  6. Jun 03, 2021
  7. Jun 02, 2021
  8. Jun 01, 2021
    • Richard van der Hoff's avatar
      add a cache to have_seen_event (#9953) · b4b2fd2e
      Richard van der Hoff authored
      Empirically, this helped my server considerably when handling gaps in Matrix HQ. The problem was that we would repeatedly call have_seen_events for the same set of (50K or so) auth_events, each of which would take many minutes to complete, even though it's only an index scan.
      Unverified
      b4b2fd2e
  9. May 27, 2021
  10. May 26, 2021
  11. May 24, 2021
  12. May 21, 2021
  13. May 18, 2021
  14. May 14, 2021
  15. May 12, 2021
  16. May 11, 2021
  17. May 07, 2021
  18. May 06, 2021
  19. May 05, 2021
  20. Apr 29, 2021
  21. Apr 28, 2021
  22. Apr 27, 2021
  23. Apr 23, 2021
Loading