mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-19 10:45:12 +00:00
tidyup
git-svn-id: http://s3fs.googlecode.com/svn/trunk@87 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
eb73bcb0d3
commit
c8afa8f7f0
@ -207,35 +207,6 @@ my_curl_easy_perform(CURL* curl) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
//// ### TODO replace this with a plain 'ol function (or a method on auto_curl)
|
||||
//#define MY_CURL_EASY_PERFORM(curl) \
|
||||
//if (true) { \
|
||||
// CURLcode curlCode = curl_easy_perform(curl.get()); \
|
||||
// if (curlCode == CURLE_OPERATION_TIMEDOUT) \
|
||||
// curlCode = curl_easy_perform(curl.get()); \
|
||||
// if (curlCode != 0) { \
|
||||
// long responseCode; \
|
||||
// if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode) != 0) \
|
||||
// Yikes(-EIO); \
|
||||
// if (responseCode == 500) { \
|
||||
// cout << __LINE__ << "###curlCode=" << curlCode << "(" << curl_easy_strerror(curlCode) << ")" << "###responseCode=" << responseCode << endl; \
|
||||
// cout << "retrying..." << endl; \
|
||||
// curlCode = curl_easy_perform(curl.get()); \
|
||||
// if (curlCode == CURLE_OPERATION_TIMEDOUT) \
|
||||
// curlCode = curl_easy_perform(curl.get()); \
|
||||
// } \
|
||||
// if (curlCode != 0) { \
|
||||
// if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode) != 0) \
|
||||
// Yikes(-EIO); \
|
||||
// if (responseCode == 404) \
|
||||
// return -ENOENT; \
|
||||
// cout << __LINE__ << "###curlCode=" << curlCode << "(" << curl_easy_strerror(curlCode) << ")" << "###responseCode=" << responseCode << endl; \
|
||||
// cout << "giving up..." << endl; \
|
||||
// Yikes(-EIO); \
|
||||
// } \
|
||||
// } \
|
||||
//}
|
||||
|
||||
static string bucket;
|
||||
static string AWSAccessKeyId;
|
||||
static string AWSSecretAccessKey;
|
||||
|
Loading…
Reference in New Issue
Block a user