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
feat(config): introduce federation connection timeout setting
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prefligit / prefligit (pull_request) Has been cancelled
5399ac97f2
fixes #906

Signed-off-by: rooot <hey@rooot.gay>
@ -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 force-pushed federation-conn-timeout from 1d5c3e1cf3
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prefligit / prefligit (pull_request) Has been cancelled
to 811623adb8
Some checks failed
Checks / Prefligit / prefligit (pull_request) Successful in 27s
Release Docker Image / define-variables (push) Successful in 13s
Checks / Prefligit / prefligit (push) Successful in 37s
Documentation / Build and Deploy Documentation (push) Successful in 48s
Checks / Rust / Format (push) Failing after 43s
Checks / Rust / Clippy (push) Successful in 2m55s
Checks / Rust / Cargo Test (push) Successful in 5m42s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Successful in 10m34s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Successful in 20m29s
Release Docker Image / merge (push) Successful in 31s
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
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 😗🎶
Jade added this to the v0.5.0-rc.7 milestone 2025-07-25 12:45:11 +00:00
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.