anonymousland-synapse/synapse
Erik Johnston 4f21c33be3
Remove usage of "conn_id" for presence. (#7128)
* Remove `conn_id` usage for UserSyncCommand.

Each tcp replication connection is assigned a "conn_id", which is used
to give an ID to a remotely connected worker. In a redis world, there
will no longer be a one to one mapping between connection and instance,
so instead we need to replace such usages with an ID generated by the
remote instances and included in the replicaiton commands.

This really only effects UserSyncCommand.

* Add CLEAR_USER_SYNCS command that is sent on shutdown.

This should help with the case where a synchrotron gets restarted
gracefully, rather than rely on 5 minute timeout.
2020-03-30 16:37:24 +01:00
..
_scripts Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
api Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
app Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
appservice Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
config Always whitelist the login fallback for SSO (#7153) 2020-03-27 20:24:52 +00:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
federation Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
groups Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
handlers Merge pull request #7160 from matrix-org/dbkr/always_send_own_device_list_updates 2020-03-30 14:34:28 +01:00
http Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
logging Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
metrics Add prometheus metrics for the number of active pushers (#7103) 2020-03-19 10:00:24 +00:00
module_api Factor out complete_sso_login and expose it to the Module API 2020-03-03 10:54:44 +00:00
push Fix concurrent modification errors in pusher metrics (#7106) 2020-03-19 10:28:49 +00:00
replication Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
res/templates Use innerText instead of innerHTML 2020-03-13 19:09:22 +00:00
rest Admin API to join users to a room. (#7051) 2020-03-27 19:16:43 +00:00
server_notices Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
static Improve the UX of the login fallback when using SSO (#7152) 2020-03-27 20:19:54 +00:00
storage Ensure is_verified on /_matrix/client/r0/room_keys/keys is a boolean (#7150) 2020-03-27 13:30:22 +00:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
util Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
__init__.py 1.12.0 2020-03-23 12:13:09 +00:00
event_auth.py Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
notifier.py Wake up transaction queue when remote server comes back online (#6706) 2020-01-17 10:27:19 +00:00
python_dependencies.py Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
server.pyi Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
visibility.py Refactor a bit 2020-03-11 18:49:41 +00:00