From eb73bcb0d36d693489cfa11361b6d00e2928c8b7 Mon Sep 17 00:00:00 2001 From: rrizun Date: Wed, 20 Feb 2008 04:50:01 +0000 Subject: [PATCH] 1 attempt + 2 retries for a total of 3 git-svn-id: http://s3fs.googlecode.com/svn/trunk@84 df820570-a93a-0410-bd06-b72b767a4274 --- s3fs/s3fs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/s3fs/s3fs.cpp b/s3fs/s3fs.cpp index c15e23b..cd7f82f 100644 --- a/s3fs/s3fs.cpp +++ b/s3fs/s3fs.cpp @@ -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)