forked-synapse/synapse/replication/tcp
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
..
streams Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
__init__.py Fix up docs 2017-03-31 11:19:24 +01:00
client.py Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
commands.py Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
protocol.py Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
resource.py Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00