Handle curl send and recv errors a little more gracefully

git-svn-id: http://s3fs.googlecode.com/svn/trunk@357 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ben.lemasurier@gmail.com 2011-07-29 15:48:15 +00:00
parent 824431712e
commit 07baba972a

View File

@ -215,6 +215,16 @@ int my_curl_easy_perform(CURL* curl, BodyStruct* body, FILE* f) {
sleep(4);
break;
case CURLE_SEND_ERROR:
syslog(LOG_ERR, "### CURLE_SEND_ERROR");
sleep(2);
break;
case CURLE_RECV_ERROR:
syslog(LOG_ERR, "### CURLE_RECV_ERROR");
sleep(2);
break;
case CURLE_SSL_CACERT:
// try to locate cert, if successful, then set the
// option and continue