forked-synapse/synapse
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
..
_scripts Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
api Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
app Run replication streamers on workers (#7146) 2020-04-28 13:34:12 +01:00
appservice Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
config Fix fallback value for account_threepid_delegates.email (#7316) 2020-04-29 11:30:06 +01: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 Merge branch 'release-v1.12.4' into develop 2020-04-22 13:09:23 +01:00
groups Fix incorrect metrics reporting for renew_attestations (#7344) 2020-04-27 22:20:10 +01:00
handlers Convert some of the federation handler methods to async/await. (#7338) 2020-04-24 14:36:38 -04:00
http Reduce federation logging on success (#7321) 2020-04-22 11:18:18 +01:00
logging Reduce the number of calls to resource.getrusage (#7183) 2020-04-03 13:21:30 +01:00
metrics Add prometheus metrics for the number of active pushers (#7103) 2020-03-19 10:00:24 +00:00
module_api Convert auth handler to async/await (#7261) 2020-04-15 12:40:18 -04:00
push Do not treat display names as globs for push rules. (#7271) 2020-04-22 13:07:12 +01:00
replication Don't relay REMOTE_SERVER_UP cmds to same conn. (#7352) 2020-04-29 14:10:59 +01:00
res/templates Use a template for the SSO success page to allow for customization. (#7279) 2020-04-17 13:34:55 -04:00
rest Return total number of users and profile attributes in admin users endpoint (#6881) 2020-04-28 18:19:36 +01:00
server_notices Server notices: Dissociate room creation/lookup from invite (#7199) 2020-04-04 17:27:45 +02: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 Make it clearer to the user that they haven't overridden onLogin/Register (#7237) 2020-04-09 12:38:38 +01:00
storage Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +01:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
util Extend StreamChangeCache to support multiple entities per stream ID (#7303) 2020-04-22 13:45:40 +01:00
__init__.py 1.12.4 2020-04-23 10:59:10 -04: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 Don't relay REMOTE_SERVER_UP cmds to same conn. (#7352) 2020-04-29 14:10:59 +01:00
python_dependencies.py Add ability to run replication protocol over redis. (#7040) 2020-04-22 13:07:41 +01:00
secrets.py
server.py Move client command handling out of TCP protocol (#7185) 2020-04-06 09:58:42 +01:00
server.pyi Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +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