From 3c1416091ea394fdb7ae11e9967f9dd54fcfef48 Mon Sep 17 00:00:00 2001 From: Arrowana <8245419+Arrowana@users.noreply.github.com> Date: Thu, 30 Dec 2021 10:01:41 +1100 Subject: [PATCH] Add connect timeout and change overall timeout to None --- install/src/command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/src/command.rs b/install/src/command.rs index a4f77f6e9a..8c0e002eaf 100644 --- a/install/src/command.rs +++ b/install/src/command.rs @@ -92,7 +92,8 @@ fn download_to_temp( let temp_file = temp_dir.path().join("download"); let client = reqwest::blocking::Client::builder() - .timeout(Duration::from_secs(360)) + .connect_timeout(Duration::from_secs(5)) + .timeout(None) .build()?; let progress_bar = new_spinner_progress_bar();