mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Merge pull request #440 from ggtakec/master
Handled all curl error without exiting process - #437
This commit is contained in:
commit
676b2090fb
14
src/curl.cpp
14
src/curl.cpp
@ -1998,13 +1998,13 @@ int S3fsCurl::RequestPerform(void)
|
|||||||
// option and continue
|
// option and continue
|
||||||
if(0 == S3fsCurl::curl_ca_bundle.size()){
|
if(0 == S3fsCurl::curl_ca_bundle.size()){
|
||||||
if(!S3fsCurl::LocateBundle()){
|
if(!S3fsCurl::LocateBundle()){
|
||||||
S3FS_PRN_CRIT("could not get CURL_CA_BUNDLE.");
|
S3FS_PRN_ERR("could not get CURL_CA_BUNDLE.");
|
||||||
exit(EXIT_FAILURE);
|
return -EIO;
|
||||||
}
|
}
|
||||||
break; // retry with CAINFO
|
break; // retry with CAINFO
|
||||||
}
|
}
|
||||||
S3FS_PRN_CRIT("curlCode: %d msg: %s", curlCode, curl_easy_strerror(curlCode));
|
S3FS_PRN_ERR("curlCode: %d msg: %s", curlCode, curl_easy_strerror(curlCode));
|
||||||
exit(EXIT_FAILURE);
|
return -EIO;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef CURLE_PEER_FAILED_VERIFICATION
|
#ifdef CURLE_PEER_FAILED_VERIFICATION
|
||||||
@ -2021,7 +2021,7 @@ int S3fsCurl::RequestPerform(void)
|
|||||||
}else{
|
}else{
|
||||||
S3FS_PRN_INFO("my_curl_easy_perform: curlCode: %d -- %s", curlCode, curl_easy_strerror(curlCode));
|
S3FS_PRN_INFO("my_curl_easy_perform: curlCode: %d -- %s", curlCode, curl_easy_strerror(curlCode));
|
||||||
}
|
}
|
||||||
exit(EXIT_FAILURE);
|
return -EIO;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2045,8 +2045,8 @@ int S3fsCurl::RequestPerform(void)
|
|||||||
|
|
||||||
// Unknown CURL return code
|
// Unknown CURL return code
|
||||||
default:
|
default:
|
||||||
S3FS_PRN_CRIT("###curlCode: %d msg: %s", curlCode, curl_easy_strerror(curlCode));
|
S3FS_PRN_ERR("###curlCode: %d msg: %s", curlCode, curl_easy_strerror(curlCode));
|
||||||
exit(EXIT_FAILURE);
|
return -EIO;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
S3FS_PRN_INFO("### retrying...");
|
S3FS_PRN_INFO("### retrying...");
|
||||||
|
Loading…
Reference in New Issue
Block a user