From bccde0a980b38d9e2291f75ef932a978e78774b4 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 25 Jan 2024 14:00:42 +0100 Subject: 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 --- src/zenhttp/httpclient.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/zenhttp/httpclient.cpp') 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; -- cgit v1.2.3