Added HTTP 502 to the list of retryable errors.
This commit is contained in:
parent
c2fd27f294
commit
f050105243
|
@ -400,7 +400,7 @@ ACTOR Future<Reference<HTTP::Response>> doRequest_impl(Reference<BlobStoreEndpoi
|
||||||
bstore->s_stats.requests_failed++;
|
bstore->s_stats.requests_failed++;
|
||||||
|
|
||||||
// All errors in err are potentially retryable as well as certain HTTP response codes...
|
// All errors in err are potentially retryable as well as certain HTTP response codes...
|
||||||
bool retryable = err.present() || r->code == 500 || r->code == 503;
|
bool retryable = err.present() || r->code == 500 || r->code == 502 || r->code == 503;
|
||||||
|
|
||||||
// But only if our previous attempt was not the last allowable try.
|
// But only if our previous attempt was not the last allowable try.
|
||||||
retryable = retryable && (thisTry < maxTries);
|
retryable = retryable && (thisTry < maxTries);
|
||||||
|
|
Loading…
Reference in New Issue