From 06a6a5628e18c660c8ca3636c300d0e9b18cce2c Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Tue, 19 Jan 2021 16:19:37 -0800 Subject: [PATCH] Remove libcurl patch for timeout (#1391) --- sdk/core/azure-core/src/http/curl/curl.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sdk/core/azure-core/src/http/curl/curl.cpp b/sdk/core/azure-core/src/http/curl/curl.cpp index 569abbb92..89a188901 100644 --- a/sdk/core/azure-core/src/http/curl/curl.cpp +++ b/sdk/core/azure-core/src/http/curl/curl.cpp @@ -1115,16 +1115,6 @@ std::unique_ptr 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.