Implement MSC4188 (410 Gone during resolution) #2355
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No assignees
3 participants
Notifications
Due date
No due date set.
Depends on
#2503 chore: Update resolvematrix to 1.4.1
continuwuation/continuwuity
Reference
continuwuation/continuwuity!2355
Loading…
Reference in a new issue
No description provided.
Delete branch "silversys/continuwuity:resolvematrix-v1.4.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements required code around resolvematrix to fully support MSC4188, and to mark servers which fail resolution as unhealthy+stale and prevent re-resolution for 90 days (or until they send a request to us first).
Closes: #644
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
9f10d47445f5f84bed61chore: Update resolvematrix to v1.4.0to WIP: Update resolvematrix to v1.4.0abaadb4f1637191382643719138264a8c401883dWIP: Update resolvematrix to v1.4.0to WIP: Implement MSC4188 (410 Gone during resolution)a8c401883d5bb68a7a1aI'm unable to test this myself as I am currently running a debug branch to fix deadlocks, but i believe it should work fine
WIP: Implement MSC4188 (410 Gone during resolution)to Implement MSC4188 (410 Gone during resolution)@ -141,1 +146,3 @@.await?;.await.inspect_err(|_| {self.hit_unhealthy(dest.to_owned(), Some(Duration::from_hours(24 * 90)));this duration should go in a constant to make it clear what it's for
5bb68a7a1a7ab608f9457ab608f9458e5800a2a18e5800a2a1d7b21396cfd7b21396cfae5ce4bda3841d1ee30a451bba2842@ -135,1 +140,4 @@/// How long to mark a server as unhealthy before attempting/// re-resolutionconst UNHEALTHY_TIMEOUT: Duration = Duration::from_hours(24 * 90);What is this timeout constant actually used for? Is this just for servers that fail to resolve?
yeah, its the max value as recommended by the MSC : https://github.com/matrix-org/matrix-spec-proposals/pull/4188/changes#diff-db67464a0a14d7e093421cc6654f9b59d1c4c0b4ccaae82601924e0922788e9bR33-R35
After that period, the server will attempt re-resolution.
It should be renamed to something more clear then, I think
examples? i can maybe make the docstring a bit better, but i cant really think of a better variable name
I would name it
UNRESOLVABLE_RERTY_AFTERor similar451bba284277a4ef66c5Have now tested, everything looks to be running fine, assuming reviews look good now this is ready to merge :)