mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-24 06:18:25 +00:00
Merge pull request #1306 from gaul/http/500
Retry with exponential backoff during 500 error
This commit is contained in:
commit
f16ee96d7e
@ -2570,8 +2570,9 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
|
|||||||
result = -ENOTSUP;
|
result = -ENOTSUP;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 500:
|
||||||
case 503:
|
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());
|
S3FS_PRN_DBG("Body Text: %s", bodydata.str());
|
||||||
sleep(4 << retry_count);
|
sleep(4 << retry_count);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user