From 4645be3e528cdcd72a4dfd051c4be05b2554ac8f Mon Sep 17 00:00:00 2001 From: Arrowana <8245419+Arrowana@users.noreply.github.com> Date: Tue, 28 Dec 2021 11:04:48 +1100 Subject: [PATCH] fix: Installer increase download req timeout from 30 seconds to 6 minutes (cherry picked from commit a1912f84008e25de9bea77e0b748067db180789d) --- install/src/command.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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));