diff options
author | Marc Laukien <marc@zeroc.com> | 2001-11-21 17:08:45 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-11-21 17:08:45 +0000 |
commit | bc6891fb54e110accaaf08b37a83d7c8d9809d63 (patch) | |
tree | c3587bceae2f0f6e791d58699b1a6eaba1a89616 /cpp/src | |
parent | Updated to include the Security tracing property. (diff) | |
download | ice-bc6891fb54e110accaaf08b37a83d7c8d9809d63.tar.bz2 ice-bc6891fb54e110accaaf08b37a83d7c8d9809d63.tar.xz ice-bc6891fb54e110accaaf08b37a83d7c8d9809d63.zip |
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Collector.cpp | 19 | ||||
-rw-r--r-- | cpp/src/Ice/Emitter.cpp | 5 | ||||
-rw-r--r-- | cpp/src/Ice/ObjectAdapterI.cpp | 3 | ||||
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 5 |
4 files changed, 21 insertions, 11 deletions
diff --git a/cpp/src/Ice/Collector.cpp b/cpp/src/Ice/Collector.cpp index b9c0ebb3e20..7beee8e1228 100644 --- a/cpp/src/Ice/Collector.cpp +++ b/cpp/src/Ice/Collector.cpp @@ -22,12 +22,11 @@ #include <Ice/Exception.h> #include <Ice/Protocol.h> #include <Ice/Functional.h> -#include <Ice/SecurityException.h> +#include <Ice/SecurityException.h> // TODO: bandaid, see below. using namespace std; using namespace Ice; using namespace IceInternal; -using IceSecurity::SecurityException; void IceInternal::incRef(Collector* p) { p->__incRef(); } void IceInternal::decRef(Collector* p) { p->__decRef(); } @@ -567,17 +566,17 @@ IceInternal::CollectorFactory::message(BasicStream&) collector->activate(); _collectors.push_back(collector); } - catch (const SecurityException& securityEx) + catch (const IceSecurity::SecurityException& ex) { - // TODO: bandaid. Takes care of SSL Handshake problems during creation of a Transceiver - // TODO: THIS DOESN'T WORK!!! For some reason it skips it. - // Ignore, nothing we can do here - warning(securityEx); + // TODO: bandaid. Takes care of SSL Handshake problems during + // creation of a Transceiver. Ignore, nothing we can do here. + warning(ex); } - catch (const SocketException&) + catch (const SocketException& ex) { - // TODO: bandaid. Takes care of SSL Handshake problems during creation of a Transceiver - // Ignore, nothing we can do here + // TODO: bandaid. Takes care of SSL Handshake problems during + // creation of a Transceiver. Ignore, nothing we can do here. + warning(ex); } catch (const TimeoutException&) { diff --git a/cpp/src/Ice/Emitter.cpp b/cpp/src/Ice/Emitter.cpp index 0d7f50d934b..a7817dbfd53 100644 --- a/cpp/src/Ice/Emitter.cpp +++ b/cpp/src/Ice/Emitter.cpp @@ -21,6 +21,7 @@ #include <Ice/Exception.h> #include <Ice/Protocol.h> #include <Ice/Functional.h> +#include <Ice/SecurityException.h> // TODO: bandaid, see below. using namespace std; using namespace Ice; @@ -492,6 +493,10 @@ IceInternal::EmitterFactory::create(const vector<EndpointPtr>& endpoints) { exception = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.ice_clone())); } + catch (const IceSecurity::SecurityException& ex) // TODO: bandaid to make retry w/ ssl work. + { + exception = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.ice_clone())); + } catch (const DNSException& ex) { exception = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.ice_clone())); diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp index 1fbe4c62ab6..eb2f07d0b27 100644 --- a/cpp/src/Ice/ObjectAdapterI.cpp +++ b/cpp/src/Ice/ObjectAdapterI.cpp @@ -370,7 +370,8 @@ Ice::ObjectAdapterI::newProxy(const string& ident) makeSecure = true; } - ReferencePtr reference = new Reference(_instance, ident, "", Reference::ModeTwoway, makeSecure /* false */, endpoints, endpoints); + ReferencePtr reference = new Reference(_instance, ident, "", Reference::ModeTwoway, makeSecure /* false */, + endpoints, endpoints); return _instance->proxyFactory()->referenceToProxy(reference); } diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 0d83cbfa204..0d642e39a69 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -22,6 +22,7 @@ #include <Ice/BasicStream.h> #include <Ice/Exception.h> #include <Ice/Functional.h> +#include <Ice/SecurityException.h> // TODO: bandaid, see below. using namespace std; using namespace Ice; @@ -347,6 +348,10 @@ IceProxy::Ice::Object::__handleException(const LocalException& ex, int& cnt) { ++cnt; } + catch (const IceSecurity::SecurityException& ex) // TODO: bandaid to make retry w/ ssl work. + { + ++cnt; + } catch (const DNSException&) { ++cnt; |