mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-19 10:45:12 +00:00
1 attempt + 2 retries for a total of 3
git-svn-id: http://s3fs.googlecode.com/svn/trunk@84 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
04534c156f
commit
eb73bcb0d3
@ -174,15 +174,16 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// -oretries=3
|
||||
static int retries = 3;
|
||||
// -oretries=2
|
||||
static int retries = 2;
|
||||
|
||||
/**
|
||||
* @return fuse return code
|
||||
*/
|
||||
static int
|
||||
my_curl_easy_perform(CURL* curl) {
|
||||
int t = retries;
|
||||
// 1 attempt + retries...
|
||||
int t = 1+retries;
|
||||
while (t-- > 0) {
|
||||
CURLcode curlCode = curl_easy_perform(curl);
|
||||
if (curlCode == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user