Provide same servers
list in s2s alias results as c2s.
#18970
+1
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change lifts the restriction on
servers
provided with federation alias resolution by providing the sameservers
already returned with client alias resolution.The problem is that users favor joining rooms via coveted matrix.org aliases which are the most reliably resolved yet the least reliably joined. The abridged list of
servers
in the above case often yields a cloudflare 524 customer-timeout.An attempt was made to allay the blame placed upon us from users suffering join failures by shuffling matrix.org to the back of the servers list. This solution is ineffective with
servers
lists abridged to a single element.If this patch is declined the server will have no choice but to fallback to resolving aliases via the client-server endpoint to obtain the unabridged list; obviously not intended and easily preventable with this patch.
If the disposition is to accept I can look into providing the changelog and any additional signoffs as requested.
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.