MatrixSynapse/synapse
Erik Johnston dd71eb0f8a
Make federation catchup send last event from any server. (#9640)
Currently federation catchup will send the last *local* event that we
failed to send to the remote. This can cause issues for large rooms
where lots of servers have sent events while the remote server was down,
as when it comes back up again it'll be flooded with events from various
points in the DAG.

Instead, let's make it so that all the servers send the most recent
events, even if its not theirs. The remote should deduplicate the
events, so there shouldn't be much overhead in doing this.
Alternatively, the servers could only send local events if they were
also extremities and hope that the other server will send the event
over, but that is a bit risky.
2021-03-18 15:52:26 +00:00
..
_scripts
api Fix additional type hints from Twisted 21.2.0. (#9591) 2021-03-12 11:37:57 -05:00
app Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
appservice
config Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
crypto Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
events Ensure we use a copy of the event content dict before modifying it in serialize_event (#9585) 2021-03-17 16:51:55 +00:00
federation Make federation catchup send last event from any server. (#9640) 2021-03-18 15:52:26 +00:00
groups
handlers only save remote cross-signing keys if they're different from the current ones (#9634) 2021-03-17 11:04:57 -04:00
http Fix remaining mypy issues due to Twisted upgrade. (#9608) 2021-03-15 11:14:39 -04:00
logging Fix additional type hints from Twisted 21.2.0. (#9591) 2021-03-12 11:37:57 -05:00
metrics
module_api
push Fix additional type hints from Twisted 21.2.0. (#9591) 2021-03-12 11:37:57 -05:00
replication Fix up types for the typing handler. (#9638) 2021-03-17 11:30:21 -04:00
res/templates
rest Fix up types for the typing handler. (#9638) 2021-03-17 11:30:21 -04:00
server_notices
spam_checker_api
state
static
storage Fix bad naming of storage function (#9637) 2021-03-17 13:20:08 +00:00
streams
util
__init__.py 1.30.0rc1 2021-03-16 13:45:46 +00:00
event_auth.py
notifier.py
python_dependencies.py
secrets.py
server.py Fix up types for the typing handler. (#9638) 2021-03-17 11:30:21 -04:00
types.py Convert Requester to attrs (#9586) 2021-03-10 18:15:56 +00:00
visibility.py