docs(config): warn about federation key query timeout caveat
Some checks failed
Documentation / Build and Deploy Documentation (push) Has been skipped
Checks / Prefligit / prefligit (push) Failing after 3s
Release Docker Image / define-variables (push) Failing after 2s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 3s
Checks / Rust / Clippy (push) Failing after 10s
Checks / Rust / Cargo Test (push) Failing after 13s

Signed-off-by: rooot <hey@rooot.gay>
This commit is contained in:
rooot 2025-07-20 16:46:18 +02:00
commit 811623adb8
No known key found for this signature in database
GPG key ID: 3582D7B034FF964F
2 changed files with 6 additions and 2 deletions

View file

@ -328,7 +328,9 @@
# 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.
# you configure here given that a homeserver doesn't respond. This will
# cause most clients to time out /keys/query, causing E2EE and device
# verification to fail.
#
#federation_conn_timeout = 10

View file

@ -415,7 +415,9 @@ pub struct Config {
/// 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.
/// you configure here given that a homeserver doesn't respond. This will
/// cause most clients to time out /keys/query, causing E2EE and device
/// verification to fail.
///
/// default: 10
#[serde(default = "default_federation_conn_timeout")]