setup: set download timeout (#27441)

pull/27445/head
Cameron Clough 2 years ago committed by GitHub
parent 79e6910106
commit f64fa07b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/ui/qt/setup/setup.cc

@ -53,6 +53,7 @@ void Setup::download(QString url) {
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_USERAGENT, (USER_AGENT + version).c_str());
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30L);
int ret = curl_easy_perform(curl);
long res_status = 0;

Loading…
Cancel
Save