mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 02:33:01 +02:00
Compare commits
No commits in common. "811623adb8bc7ae0e75912ff14b8eab4712ede23" and "f513cb75989bf48610784f26a2b73781e306dfbe" have entirely different histories.
811623adb8
...
f513cb7598
3 changed files with 0 additions and 25 deletions
|
@ -325,15 +325,6 @@
|
||||||
#
|
#
|
||||||
#well_known_timeout = 10
|
#well_known_timeout = 10
|
||||||
|
|
||||||
# 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. This will
|
|
||||||
# cause most clients to time out /keys/query, causing E2EE and device
|
|
||||||
# verification to fail.
|
|
||||||
#
|
|
||||||
#federation_conn_timeout = 10
|
|
||||||
|
|
||||||
# Federation client request timeout (seconds). You most definitely want
|
# Federation client request timeout (seconds). You most definitely want
|
||||||
# this to be high to account for extremely large room joins, slow
|
# this to be high to account for extremely large room joins, slow
|
||||||
# homeservers, your own resources etc.
|
# homeservers, your own resources etc.
|
||||||
|
|
|
@ -412,17 +412,6 @@ pub struct Config {
|
||||||
#[serde(default = "default_well_known_timeout")]
|
#[serde(default = "default_well_known_timeout")]
|
||||||
pub well_known_timeout: u64,
|
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. 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")]
|
|
||||||
pub federation_conn_timeout: u64,
|
|
||||||
|
|
||||||
/// Federation client request timeout (seconds). You most definitely want
|
/// Federation client request timeout (seconds). You most definitely want
|
||||||
/// this to be high to account for extremely large room joins, slow
|
/// this to be high to account for extremely large room joins, slow
|
||||||
/// homeservers, your own resources etc.
|
/// homeservers, your own resources etc.
|
||||||
|
@ -2204,8 +2193,6 @@ fn default_well_known_conn_timeout() -> u64 { 6 }
|
||||||
|
|
||||||
fn default_well_known_timeout() -> u64 { 10 }
|
fn default_well_known_timeout() -> u64 { 10 }
|
||||||
|
|
||||||
fn default_federation_conn_timeout() -> u64 { 10 }
|
|
||||||
|
|
||||||
fn default_federation_timeout() -> u64 { 25 }
|
fn default_federation_timeout() -> u64 { 25 }
|
||||||
|
|
||||||
fn default_federation_idle_timeout() -> u64 { 25 }
|
fn default_federation_idle_timeout() -> u64 { 25 }
|
||||||
|
|
|
@ -66,7 +66,6 @@ impl crate::Service for Service {
|
||||||
|
|
||||||
federation: base(config)?
|
federation: base(config)?
|
||||||
.dns_resolver(resolver.resolver.hooked.clone())
|
.dns_resolver(resolver.resolver.hooked.clone())
|
||||||
.connect_timeout(Duration::from_secs(config.federation_conn_timeout))
|
|
||||||
.read_timeout(Duration::from_secs(config.federation_timeout))
|
.read_timeout(Duration::from_secs(config.federation_timeout))
|
||||||
.pool_max_idle_per_host(config.federation_idle_per_host.into())
|
.pool_max_idle_per_host(config.federation_idle_per_host.into())
|
||||||
.pool_idle_timeout(Duration::from_secs(config.federation_idle_timeout))
|
.pool_idle_timeout(Duration::from_secs(config.federation_idle_timeout))
|
||||||
|
@ -75,7 +74,6 @@ impl crate::Service for Service {
|
||||||
|
|
||||||
synapse: base(config)?
|
synapse: base(config)?
|
||||||
.dns_resolver(resolver.resolver.hooked.clone())
|
.dns_resolver(resolver.resolver.hooked.clone())
|
||||||
.connect_timeout(Duration::from_secs(config.federation_conn_timeout))
|
|
||||||
.read_timeout(Duration::from_secs(305))
|
.read_timeout(Duration::from_secs(305))
|
||||||
.pool_max_idle_per_host(0)
|
.pool_max_idle_per_host(0)
|
||||||
.redirect(redirect::Policy::limited(3))
|
.redirect(redirect::Policy::limited(3))
|
||||||
|
@ -83,7 +81,6 @@ impl crate::Service for Service {
|
||||||
|
|
||||||
sender: base(config)?
|
sender: base(config)?
|
||||||
.dns_resolver(resolver.resolver.hooked.clone())
|
.dns_resolver(resolver.resolver.hooked.clone())
|
||||||
.connect_timeout(Duration::from_secs(config.federation_conn_timeout))
|
|
||||||
.read_timeout(Duration::from_secs(config.sender_timeout))
|
.read_timeout(Duration::from_secs(config.sender_timeout))
|
||||||
.timeout(Duration::from_secs(config.sender_timeout))
|
.timeout(Duration::from_secs(config.sender_timeout))
|
||||||
.pool_max_idle_per_host(1)
|
.pool_max_idle_per_host(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue