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
......@@ -330,6 +330,11 @@ int CurlHelper::RetrieveFile(const std::string& urlString, std::string filename)
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));
// Set timeout
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment