Merge remote-tracking branch 'origin/dmr/bump-state-timeouts' into matrix-org-hotfixes

anoa/redirect_instances
David Robertson 2023-01-25 15:19:33 +00:00
commit 8d6bb6e8ee
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
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, to avoid the partial state resync timing out early and trying
# a bunch of servers who haven't see our join yet.
timeout=600,
parser=_StateParser(room_version),
)