retry request on HTTP 429 error

This commit is contained in:
Sébastien Brochet 2024-04-12 14:02:39 +02:00 committed by Andrew Gaul
parent 95026804e9
commit dd6815b90f

View File

@ -2688,6 +2688,7 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
result = -ENOTSUP;
break;
case 429:
case 500:
case 503: {
S3FS_PRN_INFO3("HTTP response code %ld was returned, slowing down", responseCode);