Skip to content
Snippets Groups Projects
  1. Nov 19, 2020
  2. Nov 17, 2020
  3. Nov 16, 2020
  4. Nov 03, 2020
  5. Oct 29, 2020
    • Erik Johnston's avatar
      Add ability for access tokens to belong to one user but grant access to another user. (#8616) · f21e24ff
      Erik Johnston authored
      We do it this way round so that only the "owner" can delete the access token (i.e. `/logout/all` by the "owner" also deletes that token, but `/logout/all` by the "target user" doesn't).
      
      A future PR will add an API for creating such a token.
      
      When the target user and authenticated entity are different the `Processed request` log line will be logged with a: `{@admin:server as @bob:server} ...`. I'm not convinced by that format (especially since it adds spaces in there, making it harder to use `cut -d ' '` to chop off the start of log lines). Suggestions welcome.
      f21e24ff
  6. Oct 26, 2020
    • Erik Johnston's avatar
      Start fewer opentracing spans (#8640) · 2b7c1808
      Erik Johnston authored
      #8567 started a span for every background process. This is good as it means all Synapse code that gets run should be in a span (unless in the sentinel logging context), but it means we generate about 15x the number of spans as we did previously.
      
      This PR attempts to reduce that number by a) not starting one for send commands to Redis, and b) deferring starting background processes until after we're sure they're necessary.
      
      I don't really know how much this will help.
      2b7c1808
  7. Oct 23, 2020
  8. Oct 14, 2020
    • Erik Johnston's avatar
      Fix not sending events over federation when using sharded event persisters (#8536) · 921a3f8a
      Erik Johnston authored
      * Fix outbound federaion with multiple event persisters.
      
      We incorrectly notified federation senders that the minimum persisted
      stream position had advanced when we got an `RDATA` from an event
      persister.
      
      Notifying of federation senders already correctly happens in the
      notifier, so we just delete the offending line.
      
      * Change some interfaces to use RoomStreamToken.
      
      By enforcing use of `RoomStreamTokens` we make it less likely that
      people pass in random ints that they got from somewhere random.
      921a3f8a
  9. Oct 13, 2020
  10. Oct 09, 2020
  11. Oct 08, 2020
  12. Oct 07, 2020
  13. Oct 06, 2020
  14. Oct 05, 2020
  15. Oct 01, 2020
  16. Sep 30, 2020
  17. Sep 25, 2020
  18. Sep 22, 2020
  19. Sep 18, 2020
  20. Sep 15, 2020
  21. Sep 09, 2020
    • Erik Johnston's avatar
      Fixup pusher pool notifications (#8287) · c9dbee50
      Erik Johnston authored
      `pusher_pool.on_new_notifications` expected a min and max stream ID, however that was not what we were passing in. Instead, let's just pass it the current max stream ID and have it track the last stream ID it got passed.
      
      I believe that it mostly worked as we called the function for every event. However, it would break for events that got persisted out of order, i.e, that were persisted but the max stream ID wasn't incremented as not all preceding events had finished persisting, and push for that event would be delayed until another event got pushed to the effected users.
      c9dbee50
    • Erik Johnston's avatar
      Revert "Fixup pusher pool notifications" · dc9dcdbd
      Erik Johnston authored
      This reverts commit e7fd336a.
      dc9dcdbd
    • Erik Johnston's avatar
      Fixup pusher pool notifications · e7fd336a
      Erik Johnston authored
      e7fd336a
  22. Sep 08, 2020
  23. Sep 04, 2020
  24. Aug 28, 2020
  25. Aug 27, 2020
  26. Aug 26, 2020
  27. Aug 20, 2020
  28. Aug 17, 2020
Loading