Add connect timeout and change overall timeout to None

(cherry picked from commit 3c1416091e)
This commit is contained in:
Arrowana
2021-12-30 10:01:41 +11:00
committed by Michael Vines
parent 4645be3e52
commit 6a2b62de62

View File

@ -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();