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

Increase timeout for client fed requests known to be long to answer #15001

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
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/15001.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Increase client timeout for potentially long federation requests. It should improve joining behavior of big rooms.
6 changes: 6 additions & 0 deletions synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ async def get_room_state_ids(
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,
)

Expand Down Expand Up @@ -345,6 +347,8 @@ async def send_join_v1(
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),
)

Expand All @@ -371,6 +375,8 @@ async def send_join_v2(
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),
)

Expand Down