Added HTTP 502 to the list of retryable errors.

This commit is contained in:
Stephen Atherton 2017-11-01 11:41:32 -07:00
parent c2fd27f294
commit f050105243
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ ACTOR Future<Reference<HTTP::Response>> doRequest_impl(Reference<BlobStoreEndpoi
bstore->s_stats.requests_failed++;
// 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.
retryable = retryable && (thisTry < maxTries);