Merge pull request #1306 from gaul/http/500

Retry with exponential backoff during 500 error
This commit is contained in:
Takeshi Nakatani 2020-06-06 15:30:22 +09:00 committed by GitHub
commit f16ee96d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2570,8 +2570,9 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
result = -ENOTSUP;
break;
case 500:
case 503:
S3FS_PRN_INFO3("HTTP response code 503 was returned, slowing down");
S3FS_PRN_INFO3("HTTP response code %ld was returned, slowing down", responseCode);
S3FS_PRN_DBG("Body Text: %s", bodydata.str());
sleep(4 << retry_count);
break;