From 16a447303455030150c13925844ec084c8d9b00d Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 25 Jan 2023 15:14:26 +0000 Subject: [PATCH] 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. --- synapse/federation/transport/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 556883f079..730169f722 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -102,6 +102,10 @@ class TransportLayerClient: destination, path=path, args={"event_id": event_id}, + # This can take a looooooong time for large rooms. Give this a generous + # timeout, to avoid the partial state resync timing out early and trying + # a bunch of servers who haven't see our join yet. + timeout=600, parser=_StateParser(room_version), )