Initial sync never completes if response takes too long
Steps to reproduce:
(On an account in a large number of active rooms)
- Open Fractal
- Log in
- Observe initial sync continuing indefinitely and these messages repeating in the logs:
SYNC Error: ReqwestError(Error { kind: Io(Custom { kind: WouldBlock, error: StringError("timed out") }), url: Some("https://terracrypt.net/_matrix/client/r0/sync?full_state=false&filter=%7B%0A++++++++++++%22room%22%3A+%7B%0A++++++++++++++++%22state%22%3A+%7B%0A++++++++++++++++++++%22types%22%3A+%5B%22m.room.*%22%5D%0A++++++++++++++++%7D%2C%0A++++++++++++++++%22timeline%22%3A+%7B%0A++++++++++++++++++++%22types%22%3A+%5B%22m.room.message%22%5D%2C%0A++++++++++++++++++++%22limit%22%3A+40%0A++++++++++++++++%7D%2C%0A++++++++++++++++%22ephemeral%22%3A+%7B+%22types%22%3A+%5B%5D+%7D%0A++++++++++++%7D%2C%0A++++++++++++%22presence%22%3A+%7B+%22types%22%3A+%5B%5D+%7D%2C%0A++++++++++++%22event_format%22%3A+%22client%22%2C%0A++++++++++++%22event_fields%22%3A+%5B%22type%22%2C+%22content%22%2C+%22sender%22%2C+%22event_id%22%2C+%22age%22%2C+%22unsigned%22%5D%0A++++++++%7D&timeout=0&access_token=<REDACTED>") })
My homeserver is not timing these requests out as far as I can tell. This may be the equivalent of this Riot issue: https://github.com/vector-im/riot-web/issues/2737
Edited by Jonathan Frederickson