mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-10-01 18:49:01 +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
|
// -oretries=2
|
||||||
static int retries = 3;
|
static int retries = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return fuse return code
|
* @return fuse return code
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
my_curl_easy_perform(CURL* curl) {
|
my_curl_easy_perform(CURL* curl) {
|
||||||
int t = retries;
|
// 1 attempt + retries...
|
||||||
|
int t = 1+retries;
|
||||||
while (t-- > 0) {
|
while (t-- > 0) {
|
||||||
CURLcode curlCode = curl_easy_perform(curl);
|
CURLcode curlCode = curl_easy_perform(curl);
|
||||||
if (curlCode == 0)
|
if (curlCode == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user