summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-04-11 17:40:12 +0000
committerMark Spruiell <mes@zeroc.com>2006-04-11 17:40:12 +0000
commitd3bdc4eb3c6ee4ff742aaf3e02ff39d1ff86003d (patch)
tree440529494237a66ebbf39e3627c87a601bec37ea /cpp/src
parentfix for bug 940: Eclipse warning (diff)
downloadice-d3bdc4eb3c6ee4ff742aaf3e02ff39d1ff86003d.tar.bz2
ice-d3bdc4eb3c6ee4ff742aaf3e02ff39d1ff86003d.tar.xz
ice-d3bdc4eb3c6ee4ff742aaf3e02ff39d1ff86003d.zip
fixing bug with Java interop
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceSSL/Context.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/Context.cpp b/cpp/src/IceSSL/Context.cpp
index 9b8dfe52e51..0eb4c530023 100644
--- a/cpp/src/IceSSL/Context.cpp
+++ b/cpp/src/IceSSL/Context.cpp
@@ -105,6 +105,14 @@ IceSSL::Context::Context(const InstancePtr& instance, const string& propPrefix,
//
SSL_CTX_set_ex_data(_ctx, 0, this);
+ //
+ // This is necessary for successful interop with Java. Without it, a Java
+ // client would fail to reestablish a connection: the server gets the
+ // error "session id context uninitialized" and the client receives
+ // "SSLHandshakeException: Remote host closed connection during handshake".
+ //
+ SSL_CTX_set_session_cache_mode(_ctx, SSL_SESS_CACHE_OFF);
+
PropertiesPtr properties = _instance->communicator()->getProperties();
//