summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslSystemOpenSSL.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2001-11-20 16:08:29 +0000
committerAnthony Neal <aneal@zeroc.com>2001-11-20 16:08:29 +0000
commitc6ef8f70221c44a2c976fe6be1aba6c6cf7e3b25 (patch)
tree7191239d930bccf9b09a5585151e646d91ddb91e /cpp/src/Ice/SslSystemOpenSSL.cpp
parentminor fixes (diff)
downloadice-c6ef8f70221c44a2c976fe6be1aba6c6cf7e3b25.tar.bz2
ice-c6ef8f70221c44a2c976fe6be1aba6c6cf7e3b25.tar.xz
ice-c6ef8f70221c44a2c976fe6be1aba6c6cf7e3b25.zip
Turned off session caching as per Duncan's recommendation.
Diffstat (limited to 'cpp/src/Ice/SslSystemOpenSSL.cpp')
-rw-r--r--cpp/src/Ice/SslSystemOpenSSL.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/Ice/SslSystemOpenSSL.cpp b/cpp/src/Ice/SslSystemOpenSSL.cpp
index dd04aef3d18..cefd35e811d 100644
--- a/cpp/src/Ice/SslSystemOpenSSL.cpp
+++ b/cpp/src/Ice/SslSystemOpenSSL.cpp
@@ -1157,6 +1157,9 @@ IceSecurity::Ssl::OpenSSL::System::createContext(SslProtocol sslProtocol)
throw contextEx;
}
+ // Turn off session caching, supposedly fixes a problem with multithreading.
+ SSL_CTX_set_session_cache_mode(context, SSL_SESS_CACHE_OFF);
+
ICE_METHOD_RET("OpenSSL::System::createContext()");
return context;