Skip to content
Snippets Groups Projects
  1. Apr 22, 2020
  2. Apr 16, 2020
  3. Apr 15, 2020
  4. Apr 14, 2020
  5. Apr 09, 2020
  6. Apr 07, 2020
  7. Apr 06, 2020
    • Erik Johnston's avatar
      Move client command handling out of TCP protocol (#7185) · 5016b162
      Erik Johnston authored
      The aim here is to move the command handling out of the TCP protocol classes and to also merge the client and server command handling (so that we can reuse them for redis protocol). This PR simply moves the client paths to the new `ReplicationCommandHandler`, a future PR will move the server paths too.
      Unverified
      5016b162
  8. Apr 04, 2020
    • Brendan Abolivier's avatar
      Server notices: Dissociate room creation/lookup from invite (#7199) · d73bf18d
      Brendan Abolivier authored
      Fixes #6815
      
      Before figuring out whether we should alert a user on MAU, we call get_notice_room_for_user to get some info on the existing server notices room for this user. This function, if the room doesn't exist, creates it and invites the user in it. This means that, if we decide later that no server notice is needed, the user gets invited in a room with no message in it. This happens at every restart of the server, since the room ID returned by get_notice_room_for_user is cached.
      
      This PR fixes that by moving the inviting bit to a dedicated function, that's only called when the server actually needs to send a notice to the user. A potential issue with this approach is that the room that's created by get_notice_room_for_user doesn't match how that same function looks for an existing room (i.e. it creates a room that doesn't have an invite or a join for the current user in it, so it could lead to a new room being created each time a user syncs), but I'm not sure this is a problem given it's cached until the server restarts, so that function won't run very often.
      
      It also renames get_notice_room_for_user into get_or_create_notice_room_for_user to make what it does clearer.
      Unverified
      d73bf18d
  9. Apr 03, 2020
  10. Apr 01, 2020
  11. Mar 31, 2020
  12. Mar 30, 2020
  13. Mar 27, 2020
  14. Mar 26, 2020
  15. Mar 25, 2020
  16. Mar 24, 2020
    • Richard van der Hoff's avatar
      Remove spurious "name" parameter to `default_config` · 28d9d6e8
      Richard van der Hoff authored
      this is never set to anything other than "test", and is a source of unnecessary
      boilerplate.
      28d9d6e8
    • Richard van der Hoff's avatar
      Clean up some LoggingContext stuff (#7120) · 39230d21
      Richard van der Hoff authored
      * Pull Sentinel out of LoggingContext
      
      ... and drop a few unnecessary references to it
      
      * Factor out LoggingContext.current_context
      
      move `current_context` and `set_context` out to top-level functions.
      
      Mostly this means that I can more easily trace what's actually referring to
      LoggingContext, but I think it's generally neater.
      
      * move copy-to-parent into `stop`
      
      this really just makes `start` and `stop` more symetric. It also means that it
      behaves correctly if you manually `set_log_context` rather than using the
      context manager.
      
      * Replace `LoggingContext.alive` with `finished`
      
      Turn `alive` into `finished` and make it a bit better defined.
      Unverified
      39230d21
  17. Mar 23, 2020
  18. Mar 20, 2020
  19. Mar 18, 2020
    • Erik Johnston's avatar
      Improve get auth chain difference algorithm. (#7095) · 4a17a647
      Erik Johnston authored
      It was originally implemented by pulling the full auth chain of all
      state sets out of the database and doing set comparison. However, that
      can take a lot work if the state and auth chains are large.
      
      Instead, lets try and fetch the auth chains at the same time and
      calculate the difference on the fly, allowing us to bail early if all
      the auth chains converge. Assuming that the auth chains do converge more
      often than not, this should improve performance. Hopefully.
      Unverified
      4a17a647
  20. Mar 17, 2020
Loading