From 71475dba8de96ca2b9a6f9a87cca3d968f6828b6 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Mon, 6 Feb 2023 15:53:08 +0100 Subject: [PATCH] Increase timeout for client fed requests known to be long to answer /send_join, /state_ids mainly, it was done recently for /state. --- synapse/federation/transport/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index c05d598b70..61fc8666e1 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -79,6 +79,8 @@ class TransportLayerClient: destination, path=path, args={"event_id": event_id}, + # This can take a looooooong time for large rooms. + timeout=600_000, try_trailing_slash_on_400=True, ) @@ -345,6 +347,8 @@ class TransportLayerClient: destination=destination, path=path, data=content, + # This can take a looooooong time for large rooms. + timeout=600_000, parser=SendJoinParser(room_version, v1_api=True), ) @@ -371,6 +375,8 @@ class TransportLayerClient: path=path, args=query_params, data=content, + # This can take a looooooong time for large rooms. + timeout=600_000, parser=SendJoinParser(room_version, v1_api=False), )