mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 04:17:52 +00:00
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:
parent
824431712e
commit
07baba972a
10
src/curl.cpp
10
src/curl.cpp
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user