mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 09:46:13 -05:00
Bump the client-side timeout for /state (#14912)
* 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. * Changelog * Milliseconds!!!!
This commit is contained in:
parent
a63d4cc9e9
commit
8e37ece015
1
changelog.d/14912.misc
Normal file
1
changelog.d/14912.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Faster joins: allow the resync process more time to fetch `/state` ids.
|
@ -102,6 +102,10 @@ 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. Give this a generous
|
||||||
|
# timeout of 10 minutes to avoid the partial state resync timing out early
|
||||||
|
# and trying a bunch of servers who haven't seen our join yet.
|
||||||
|
timeout=600_000,
|
||||||
parser=_StateParser(room_version),
|
parser=_StateParser(room_version),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user