Add connect timeout and change overall timeout to None

This commit is contained in:
Arrowana 2021-12-30 10:01:41 +11:00 committed by Michael Vines
parent a1912f8400
commit 3c1416091e
1 changed files with 2 additions and 1 deletions

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