introduce federation connection timeout setting #909

Merged
Jade merged 2 commits from rooot/continuwuity:federation-conn-timeout into main 2025-07-20 14:57:55 +00:00
Contributor

introduces a new setting to separate federation connection timeouts from the rest

fixes #906

introduces a new setting to separate federation connection timeouts from the rest fixes #906
rooot added 1 commit 2025-07-20 01:22:36 +00:00
feat(config): introduce federation connection timeout setting
Some checks are pending
Documentation / Build and Deploy Documentation (pull_request) Blocked by required conditions
Checks / Prefligit / prefligit (pull_request) Blocked by required conditions
5399ac97f2
fixes #906

Signed-off-by: rooot <hey@rooot.gay>
Jade reviewed 2025-07-20 01:26:05 +00:00
@ -415,0 +415,4 @@
/// Federation client connection timeout (seconds). You should not set this
/// to high values, as dead homeservers can significantly slow down federation,
/// specifically key retrieval, which will take roughly the amount of time
/// you configure here given that a homeserver doesn't respond.
Owner

Might want to mention the client timeout issue

Might want to mention the client timeout issue
Author
Contributor

something like "This will cause any sane client to time out /keys/query, causing E2EE and device verification to fail"?

something like "This will cause any sane client to time out /keys/query, causing E2EE and device verification to fail"?
Owner

This will cause most clients to time out /keys/query, causing E2EE and device verification to fail

(Probably comes under https://continuwuity.org/development/code_style#inclusivity-and-diversity-guidelines)

> This will cause most clients to time out /keys/query, causing E2EE and device verification to fail (Probably comes under https://continuwuity.org/development/code_style#inclusivity-and-diversity-guidelines)
Author
Contributor

im gonna be honest it didn't occur to me in the slightest that the term "sane clients" would be considered ableist language ^^
i guess "This will cause most clients to time out /keys/query, causing E2EE and device verification to fail" would be better?

im gonna be honest it didn't occur to me in the slightest that the term "sane clients" would be considered ableist language ^^ i guess "This will cause most clients to time out /keys/query, causing E2EE and device verification to fail" would be better?
Author
Contributor

oh i literally just realized that i came up with the exact same notice, i thought you were quoting, my bad lmao

oh i literally just realized that i came up with the exact same notice, i thought you were quoting, my bad lmao
rooot marked this conversation as resolved
rooot added 1 commit 2025-07-20 14:45:13 +00:00
docs(config): warn about federation key query timeout caveat
Some checks are pending
Documentation / Build and Deploy Documentation (pull_request) Blocked by required conditions
Checks / Prefligit / prefligit (pull_request) Blocked by required conditions
1d5c3e1cf3
Signed-off-by: rooot <hey@rooot.gay>
rooot force-pushed federation-conn-timeout from 1d5c3e1cf3 to 811623adb8 2025-07-20 14:46:26 +00:00 Compare
Author
Contributor

(forgot to run cargo build before committing the docs change, wasn't worth adding another commit to the history for)

(forgot to run cargo build before committing the docs change, wasn't worth adding another commit to the history for)
Jade approved these changes 2025-07-20 14:57:01 +00:00
Jade merged commit 811623adb8 into main 2025-07-20 14:57:55 +00:00
Owner

Ahh dammit the formatting was wrong

Ahh dammit the formatting was wrong
Author
Contributor

oops dangit

oops dangit
Owner

editing the branch protection rules to force push to main 😗🎶

editing the branch protection rules to force push to main 😗🎶
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#909
No description provided.