mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 14:20:23 +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,
|
destination,
|
||||||
path=path,
|
path=path,
|
||||||
args={"event_id": event_id},
|
args={"event_id": event_id},
|
||||||
|
# This can take a looooooong time for large rooms.
|
||||||
|
timeout=600_000,
|
||||||
try_trailing_slash_on_400=True,
|
try_trailing_slash_on_400=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -345,6 +347,8 @@ class TransportLayerClient:
|
||||||
destination=destination,
|
destination=destination,
|
||||||
path=path,
|
path=path,
|
||||||
data=content,
|
data=content,
|
||||||
|
# This can take a looooooong time for large rooms.
|
||||||
|
timeout=600_000,
|
||||||
parser=SendJoinParser(room_version, v1_api=True),
|
parser=SendJoinParser(room_version, v1_api=True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -371,6 +375,8 @@ class TransportLayerClient:
|
||||||
path=path,
|
path=path,
|
||||||
args=query_params,
|
args=query_params,
|
||||||
data=content,
|
data=content,
|
||||||
|
# This can take a looooooong time for large rooms.
|
||||||
|
timeout=600_000,
|
||||||
parser=SendJoinParser(room_version, v1_api=False),
|
parser=SendJoinParser(room_version, v1_api=False),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue