This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Faster joins: handle total failure to sync state #13000
Open
Description
Currently, if we try every server in the room and are unable to sync state from any of them, we give up, leaving us with a room stuck in "partial state" state, and any C-S requests for state in that room timing out indefinitely.
It's not entirely clear what we should do in this case:
- Giving up isn't the right thing to do if there's a temporary network outage
- Retrying indefinitely is also not the right thing to do if we can reach all homeservers and they all claim they don't have the state we want.
synapse/synapse/handlers/federation.py
Lines 1594 to 1610 in 7c6b220