Add 20 second timeout

pull/792/head
Tom Parker-Shemilt 5 years ago
parent c25072ec06
commit f799381f75

@ -53,6 +53,7 @@ lazy_static! {
.danger_accept_invalid_certs(true) // because some certs are out of date
.user_agent("curl/7.54.0") // so some sites (e.g. sciter.com) don't reject us
.redirect(Policy::none())
.timeout(time::Duration::from_secs(20))
.build().unwrap();
// This is to avoid errors with running out of file handles, so we only do 20 requests at a time

Loading…
Cancel
Save