Remove libcurl patch for timeout (#1391)

This commit is contained in:
Victor Vazquez 2021-01-19 16:19:37 -08:00 committed by GitHub
parent a726e81fa4
commit 06a6a5628e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1115,16 +1115,6 @@ std::unique_ptr<CurlNetworkConnection> CurlConnectionPool::GetCurlConnection(
+ std::string(curl_easy_strerror(result)));
}
// curl_easy_setopt(newHandle, CURLOPT_VERBOSE, 1L);
// Set timeout to 24h. Libcurl will fail uploading on windows if timeout is:
// timeout >= 25 days. Fails as soon as trying to upload any data
// 25 days < timeout > 1 days. Fail on huge uploads ( > 1GB)
if (!SetLibcurlOption(newHandle, CURLOPT_TIMEOUT, 60L * 60L * 24L, &result))
{
throw Azure::Core::Http::TransportException(
Details::c_DefaultFailedToGetNewConnectionTemplate + host + ". "
+ std::string(curl_easy_strerror(result)));
}
/******************** Curl handle options apply to all connections created
* The keepAlive option is managed by the session directly.