mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 15:30:21 +00:00
Increase timeout for client fed requests known to be long to answer
/send_join, /state_ids mainly, it was done recently for /state.
This commit is contained in:
parent
b275763c65
commit
71475dba8d
1 changed files with 6 additions and 0 deletions
|
@ -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),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue