Skip to content
Snippets Groups Projects
Commit 51d5fbc5 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

TEST: add curl options to fix random failure in OSMDownloader app

parent 7f66e734
Branches
Tags
No related merge requests found
...@@ -330,6 +330,11 @@ int CurlHelper::RetrieveFile(const std::string& urlString, std::string filename) ...@@ -330,6 +330,11 @@ int CurlHelper::RetrieveFile(const std::string& urlString, std::string filename)
otbMsgDevMacro(<< "Retrieving ( CurlHelper::RetrieveFile ): " << url ); otbMsgDevMacro(<< "Retrieving ( CurlHelper::RetrieveFile ): " << url );
CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_NOSIGNAL, 1));
CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_IGNORE_CONTENT_LENGTH, 1));
CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_FRESH_CONNECT , 1));
CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_FORBID_REUSE , 1));
CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_URL, url)); CurlHandleError::ProcessCURLcode(curl_easy_setopt(curlResource->GetCurlResource(), CURLOPT_URL, url));
// Set timeout // Set timeout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment