diff --git a/install/src/command.rs b/install/src/command.rs index 907ca718ad..a4f77f6e9a 100644 --- a/install/src/command.rs +++ b/install/src/command.rs @@ -91,7 +91,9 @@ fn download_to_temp( let temp_dir = TempDir::new()?; let temp_file = temp_dir.path().join("download"); - let client = reqwest::blocking::Client::new(); + let client = reqwest::blocking::Client::builder() + .timeout(Duration::from_secs(360)) + .build()?; let progress_bar = new_spinner_progress_bar(); progress_bar.set_message(format!("{}Downloading...", TRUCK));