mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #100 from adobos/dns_ssl_switch_bugfix
CURL handles not properly initialized to use DNS or SSL session caching.
This commit is contained in:
commit
d0b82428d5
@ -329,13 +329,13 @@ bool S3fsCurl::InitShareCurl(void)
|
||||
DPRN("curl_share_setopt(UNLOCKFUNC) returns %d(%s)", nSHCode, curl_share_strerror(nSHCode));
|
||||
return false;
|
||||
}
|
||||
if(!S3fsCurl::is_dns_cache){
|
||||
if(S3fsCurl::is_dns_cache){
|
||||
if(CURLSHE_OK != (nSHCode = curl_share_setopt(S3fsCurl::hCurlShare, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS))){
|
||||
DPRN("curl_share_setopt(DNS) returns %d(%s)", nSHCode, curl_share_strerror(nSHCode));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(!S3fsCurl::is_ssl_session_cache){
|
||||
if(S3fsCurl::is_ssl_session_cache){
|
||||
if(CURLSHE_OK != (nSHCode = curl_share_setopt(S3fsCurl::hCurlShare, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION))){
|
||||
DPRN("curl_share_setopt(SSL SESSION) returns %d(%s)", nSHCode, curl_share_strerror(nSHCode));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user