aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpclient.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-01-25 14:00:42 +0100
committerGitHub <[email protected]>2024-01-25 14:00:42 +0100
commitbccde0a980b38d9e2291f75ef932a978e78774b4 (patch)
treeca48ab1536d0f7a3cf9aa8743dda35abc163d553 /src/zenhttp/httpclient.cpp
parent0.2.39-pre2 (diff)
downloadzen-bccde0a980b38d9e2291f75ef932a978e78774b4.tar.xz
zen-bccde0a980b38d9e2291f75ef932a978e78774b4.zip
add ignore-missing-attachments option to oplog export (debugging tool) (#641)
* add ignore-missing-attachments option to oplog export (debugging tool) * add more status codes to do retry for in http client * add missing X-Jupiter-IoHash header for jupiter PutRef * reduce oplog block size to reduce amount of redundant chunks to download * improved logging
Diffstat (limited to 'src/zenhttp/httpclient.cpp')
-rw-r--r--src/zenhttp/httpclient.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp
index 8182ac68f..07f631dac 100644
--- a/src/zenhttp/httpclient.cpp
+++ b/src/zenhttp/httpclient.cpp
@@ -140,8 +140,11 @@ ShouldRetry(const cpr::Response& Response)
}
switch ((HttpResponseCode)Response.status_code)
{
- case HttpResponseCode::GatewayTimeout:
case HttpResponseCode::RequestTimeout:
+ case HttpResponseCode::TooManyRequests:
+ case HttpResponseCode::InternalServerError:
+ case HttpResponseCode::ServiceUnavailable:
+ case HttpResponseCode::GatewayTimeout:
return true;
default:
return false;