From 81c19a8a4f1c99f721d4c65fbcddcec6474b752b Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:11:29 +0100 Subject: http: add connect and request timeouts --- src/voice/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/voice/mod.rs') diff --git a/src/voice/mod.rs b/src/voice/mod.rs index bbb73a0..a6baa64 100644 --- a/src/voice/mod.rs +++ b/src/voice/mod.rs @@ -275,6 +275,7 @@ pub async fn ytdlp_download(url: &str) -> Result> { pub async fn download_url(client: &reqwest::Client, url: &str) -> Result> { let resp = client .get(url) + .timeout(Duration::from_secs(300)) .send() .await .map_err(|e| Error::Custom(format!("HTTP GET failed for {}: {e}", redact_url(url))))?; -- cgit v1.2.3