0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-09-24 02:29:00 +02: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:
David Robertson 2023-01-25 16:11:06 +00:00 committed by GitHub
parent a63d4cc9e9
commit 8e37ece015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

1
changelog.d/14912.misc Normal file
View file

@ -0,0 +1 @@
Faster joins: allow the resync process more time to fetch `/state` ids.

View file

@ -102,6 +102,10 @@ class TransportLayerClient:
destination,
path=path,
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),
)