diff options
| author | Dan Engelbrecht <[email protected]> | 2024-01-25 14:00:42 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-25 14:00:42 +0100 |
| commit | bccde0a980b38d9e2291f75ef932a978e78774b4 (patch) | |
| tree | ca48ab1536d0f7a3cf9aa8743dda35abc163d553 /src/zenhttp/httpclient.cpp | |
| parent | 0.2.39-pre2 (diff) | |
| download | zen-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.cpp | 5 |
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; |