Skip to content

Commit

Permalink
Add a timeout to symbol downloads
Browse files Browse the repository at this point in the history
The number I picked here is kinda arbitrary.

Fixes rust-minidump#300
  • Loading branch information
Gankra committed Nov 18, 2021
1 parent b757215 commit fc3c91c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion breakpad-symbols/src/lib.rs
Expand Up @@ -349,7 +349,10 @@ impl HttpSymbolSupplier {
tmp: PathBuf,
mut local_paths: Vec<PathBuf>,
) -> HttpSymbolSupplier {
let client = Client::new();
let client = Client::builder()
.timeout(std::time::Duration::from_secs(30))
.build()
.unwrap();
let urls = urls
.into_iter()
.filter_map(|mut u| {
Expand Down

0 comments on commit fc3c91c

Please sign in to comment.