Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Bump the client-side timeout for /state #14912

Merged
merged 3 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/14912.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Faster joins: allow the resync process more time to fetch `/state` ids.
4 changes: 4 additions & 0 deletions synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ async def get_room_state(
destination,
path=path,
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),
)

Expand Down