git-svn-id: http://s3fs.googlecode.com/svn/trunk@87 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
rrizun 2008-02-20 05:06:00 +00:00
parent eb73bcb0d3
commit c8afa8f7f0

View File

@ -207,35 +207,6 @@ my_curl_easy_perform(CURL* curl) {
return -EIO; 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 bucket;
static string AWSAccessKeyId; static string AWSAccessKeyId;
static string AWSSecretAccessKey; static string AWSSecretAccessKey;