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:
parent
2470fa91d8
commit
66a36a5576
1 changed files with 2 additions and 2 deletions
|
@ -530,8 +530,8 @@ fn url_preview_reqwest_client_builder(config: &Config) -> Result<reqwest::Client
|
|||
let mut reqwest_client_builder = reqwest::Client::builder()
|
||||
.hickory_dns(true)
|
||||
.pool_max_idle_per_host(0)
|
||||
.connect_timeout(Duration::from_secs(60))
|
||||
.timeout(Duration::from_secs(60 * 5))
|
||||
.connect_timeout(Duration::from_secs(20))
|
||||
.timeout(Duration::from_secs(30))
|
||||
.redirect(redirect_policy)
|
||||
.user_agent("Conduwuit".to_owned() + "/" + env!("CARGO_PKG_VERSION"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue