summaryrefslogtreecommitdiff
path: root/libcurl
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
committerB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
commit2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch)
tree2be66dfaf965d246ea2df6248c7890208887e6bb /libcurl
parentadd upstream 13.1 (diff)
downloadFreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.gz
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.bz2
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.zip
add upstream 13.213.2
Diffstat (limited to 'libcurl')
-rw-r--r--libcurl/curl_wrap.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcurl/curl_wrap.cpp b/libcurl/curl_wrap.cpp
index 5f2a7f9d..11ac9dd4 100644
--- a/libcurl/curl_wrap.cpp
+++ b/libcurl/curl_wrap.cpp
@@ -105,8 +105,10 @@ HttpSession::Result HttpSession::perform(const std::string& serverRelPath,
//CURLOPT_TIMEOUT: "Since this puts a hard limit for how long time a request is allowed to take, it has limited use in dynamic use cases with varying transfer times."
setCurlOption({CURLOPT_LOW_SPEED_TIME, timeoutSec}); //throw SysError
- setCurlOption({CURLOPT_LOW_SPEED_LIMIT, 1}); //throw SysError
- //[bytes], can't use "0" which means "inactive", so use some low number
+ setCurlOption({CURLOPT_LOW_SPEED_LIMIT, 1 /*[bytes]*/}); //throw SysError
+ //can't use "0" which means "inactive", so use some low number
+
+ //CURLOPT_SERVER_RESPONSE_TIMEOUT: does not apply to HTTP
std::exception_ptr userCallbackException;
@@ -249,6 +251,7 @@ HttpSession::Result HttpSession::perform(const std::string& serverRelPath,
//WTF!!! 1-sec delay when server doesn't support "Expect: 100-continue"!! https://stackoverflow.com/questions/49670008/how-to-disable-expect-100-continue-in-libcurl
headers = ::curl_slist_append(headers, "Expect:"); //guess, what: www.googleapis.com doesn't support it! e.g. gdriveUploadFile()
+ //CURLOPT_EXPECT_100_TIMEOUT_MS: should not be needed
if (headers)
setCurlOption({CURLOPT_HTTPHEADER, headers}); //throw SysError
bgstack15