Remove libcurl patch for timeout (#1391)
This commit is contained in:
parent
a726e81fa4
commit
06a6a5628e
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user