Added CURLOPT_FAILONERROR to capture http errors on habhub these will now be reported via log message at the botom of the window

pull/21/head
Robert 2016-08-18 19:12:07 +00:00
rodzic cb9fb1a6e7
commit 45dcff66e3
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -78,6 +78,9 @@ void UploadTelemetryPacket(int Channel)
// Set the timeout
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5);
// RJH capture http errors and report
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
// Avoid curl library bug that happens if above timeout occurs (sigh)
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);