From e226046e15699f39b2eb8755920449d7b544057a Mon Sep 17 00:00:00 2001 From: strawberry Date: Thu, 2 May 2024 17:00:54 -0400 Subject: [PATCH] drop default appservice_timeout to 35 seconds AS's are generally hosted on the same machine or within the same network Signed-off-by: strawberry --- conduwuit-example.toml | 4 ++-- src/config/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index cb6d0402..b726fd28 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -626,8 +626,8 @@ allow_profile_lookup_federation_requests = true # Appservice URL request connection timeout # -# Defaults to 120 seconds -#appservice_timeout = 120 +# Defaults to 35 seconds as generally appservices are hosted within the same network +#appservice_timeout = 35 # Appservice URL idle connection pool timeout # diff --git a/src/config/mod.rs b/src/config/mod.rs index 161aa4b5..5174aeb3 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -942,7 +942,7 @@ fn default_sender_idle_timeout() -> u64 { 180 } fn default_sender_retry_backoff_limit() -> u64 { 86400 } -fn default_appservice_timeout() -> u64 { 120 } +fn default_appservice_timeout() -> u64 { 35 } fn default_appservice_idle_timeout() -> u64 { 300 }