forked-synapse/tests/replication/tcp
Erik Johnston 3eab76ad43
Don't relay REMOTE_SERVER_UP cmds to same conn. (#7352)
For direct TCP connections we need the master to relay REMOTE_SERVER_UP
commands to the other connections so that all instances get notified
about it. The old implementation just relayed to all connections,
assuming that sending back to the original sender of the command was
safe. This is not true for redis, where commands sent get echoed back to
the sender, which was causing master to effectively infinite loop
sending and then re-receiving REMOTE_SERVER_UP commands that it sent.

The fix is to ensure that we only relay to *other* connections and not
to the connection we received the notification from.

Fixes #7334.
2020-04-29 14:10:59 +01:00
..
streams Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +01:00
__init__.py Fix bug where read-receipts lost their timestamps (#4927) 2019-03-25 16:38:05 +00:00
test_commands.py Another go at fixing one-word commands (#7326) 2020-04-22 14:34:31 +01:00
test_remote_server_up.py Don't relay REMOTE_SERVER_UP cmds to same conn. (#7352) 2020-04-29 14:10:59 +01:00