Add connect timeout and change overall timeout to None
This commit is contained in:
parent
a1912f8400
commit
3c1416091e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue