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:
rrizun 2008-02-20 04:50:01 +00:00
parent 04534c156f
commit eb73bcb0d3

View File

@ -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)