Skip to content
Snippets Groups Projects
Commit 66a36a55 authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

significantly drop URL preview timeouts


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

Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
parent 2470fa91
No related branches found
No related tags found
No related merge requests found
...@@ -530,8 +530,8 @@ fn url_preview_reqwest_client_builder(config: &Config) -> Result<reqwest::Client ...@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment