change the limit of how many servers to check for backfill from 5 to a minimum of 50 or the number of servers in the room

(cherry picked from commit b3210f0c61a83c6caa3510edbd3333f2693331ea)
This commit is contained in:
Jason Little
2026-03-22 16:06:23 +00:00
committed by timedout
parent fca0471673
commit 0f0d9c5986
+1 -1
View File
@@ -453,7 +453,7 @@ class FederationHandler:
# Maximum number of contacted remote homeservers that can deny our
# backfill request with 4xx codes before we give up.
max_denied_count = 5
max_denied_count = min(len(domains), 50)
for dom in domains:
# We don't want to ask our own server for information we don't have