mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 19:02:50 +02:00
feat(config): introduce federation connection timeout setting
fixes #906 Signed-off-by: rooot <hey@rooot.gay>
This commit is contained in:
parent
f513cb7598
commit
9051ce63f7
3 changed files with 23 additions and 0 deletions
|
@ -412,6 +412,16 @@ pub struct Config {
|
|||
#[serde(default = "default_well_known_timeout")]
|
||||
pub well_known_timeout: u64,
|
||||
|
||||
/// 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.
|
||||
///
|
||||
/// default: 10
|
||||
#[serde(default = "default_federation_conn_timeout")]
|
||||
pub federation_conn_timeout: u64,
|
||||
|
||||
/// Federation client request timeout (seconds). You most definitely want
|
||||
/// this to be high to account for extremely large room joins, slow
|
||||
/// homeservers, your own resources etc.
|
||||
|
@ -2193,6 +2203,8 @@ fn default_well_known_conn_timeout() -> u64 { 6 }
|
|||
|
||||
fn default_well_known_timeout() -> u64 { 10 }
|
||||
|
||||
fn default_federation_conn_timeout() -> u64 { 10 }
|
||||
|
||||
fn default_federation_timeout() -> u64 { 25 }
|
||||
|
||||
fn default_federation_idle_timeout() -> u64 { 25 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue