aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-04-13 14:53:20 +0200
committerGitHub Enterprise <[email protected]>2026-04-13 14:53:20 +0200
commit08bb8a8825696f273113491473a6168e6dfda876 (patch)
tree2f473b75e45f19da63f20607e7b53c96ee8f7c80 /src
parentsilence errors due to abort (#950) (diff)
downloadzen-08bb8a8825696f273113491473a6168e6dfda876.tar.xz
zen-08bb8a8825696f273113491473a6168e6dfda876.zip
log curl raw error on retry, add retry on CURLE_PARTIAL_FILE error (#951)
* log curl raw error on retry, add retry on CURLE_PARTIAL_FILE error
Diffstat (limited to 'src')
-rw-r--r--src/zenhttp/clients/httpclientcurl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenhttp/clients/httpclientcurl.cpp b/src/zenhttp/clients/httpclientcurl.cpp
index b9af9bd52..446dd80be 100644
--- a/src/zenhttp/clients/httpclientcurl.cpp
+++ b/src/zenhttp/clients/httpclientcurl.cpp
@@ -443,6 +443,7 @@ CurlHttpClient::ShouldRetry(const CurlResult& Result)
case CURLE_RECV_ERROR:
case CURLE_SEND_ERROR:
case CURLE_OPERATION_TIMEDOUT:
+ case CURLE_PARTIAL_FILE:
return true;
default:
return false;
@@ -489,10 +490,11 @@ CurlHttpClient::DoWithRetry(std::string_view SessionId, std::function<CurlResult
{
if (Result.ErrorCode != CURLE_OK)
{
- ZEN_INFO("Retry (session: {}): HTTP error ({}) '{}' Attempt {}/{}",
+ ZEN_INFO("Retry (session: {}): HTTP error ({}) '{}' (Curl error: {}) Attempt {}/{}",
SessionId,
static_cast<int>(MapCurlError(Result.ErrorCode)),
Result.ErrorMessage,
+ static_cast<int>(Result.ErrorCode),
Attempt,
m_ConnectionSettings.RetryCount + 1);
}