Skip to content
Snippets Groups Projects
Unverified Commit 8e37ece0 authored by David Robertson's avatar David Robertson Committed by GitHub
Browse files

Bump the client-side timeout for /state (#14912)

* Bump the client-side timeout for /state

to allow faster joins resyncs the chance to complete for large rooms.
We have seen this fair poorly (~90s for Matrix HQ's /state) in testing,
causing the resync to advance to another HS who hasn't seen our join yet.

* Changelog

* Milliseconds!!!!
parent a63d4cc9
No related branches found
No related tags found
No related merge requests found
Faster joins: allow the resync process more time to fetch `/state` ids.
...@@ -102,6 +102,10 @@ class TransportLayerClient: ...@@ -102,6 +102,10 @@ class TransportLayerClient:
destination, destination,
path=path, path=path,
args={"event_id": event_id}, args={"event_id": event_id},
# This can take a looooooong time for large rooms. Give this a generous
# timeout of 10 minutes to avoid the partial state resync timing out early
# and trying a bunch of servers who haven't seen our join yet.
timeout=600_000,
parser=_StateParser(room_version), parser=_StateParser(room_version),
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment