From 045f1e7906d7c4d3bf8e16ba3d51e7f5b8fae7a2 Mon Sep 17 00:00:00 2001 From: Andrej Dobos Date: Tue, 23 Dec 2014 22:31:54 -0800 Subject: [PATCH] CURL handles were not properly initialized to use DNS caching, or SSL session caching. --- src/curl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index 8433504..95c5053 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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;