significantly drop URL preview timeouts

theres no reason for us to spend so long trying to get
a preview

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and June committed 2024-03-23 01:49:27 -04:00
1 parent 2470fa91d8
commit 66a36a5576
1 file changed
+2 -2
+2 -2
View File
@@ -530,8 +530,8 @@ fn url_preview_reqwest_client_builder(config: &Config) -> Result<reqwest::Client
let mut reqwest_client_builder = reqwest::Client::builder() let mut reqwest_client_builder = reqwest::Client::builder()
.hickory_dns(true) .hickory_dns(true)
.pool_max_idle_per_host(0) .pool_max_idle_per_host(0)
.connect_timeout(Duration::from_secs(60)) .connect_timeout(Duration::from_secs(20))
.timeout(Duration::from_secs(60 * 5)) .timeout(Duration::from_secs(30))
.redirect(redirect_policy) .redirect(redirect_policy)
.user_agent("Conduwuit".to_owned() + "/" + env!("CARGO_PKG_VERSION")); .user_agent("Conduwuit".to_owned() + "/" + env!("CARGO_PKG_VERSION"));