diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-06-27 17:48:28 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-06-27 17:48:28 +0200 |
commit | a9dd349e2499aa37ad1628eb4f432e87cdabce96 (patch) | |
tree | f51b79a9db52a6153159cb591f29ece1cfb73524 /cpp/src/IceDiscovery/PluginI.cpp | |
parent | Fixed ICE-5665: use ff15::1:1 IPv6 multicast address instead of ff01::1:1 (diff) | |
download | ice-a9dd349e2499aa37ad1628eb4f432e87cdabce96.tar.bz2 ice-a9dd349e2499aa37ad1628eb4f432e87cdabce96.tar.xz ice-a9dd349e2499aa37ad1628eb4f432e87cdabce96.zip |
Fixed IceDiscovery test issue on CentOS 6.3
Diffstat (limited to 'cpp/src/IceDiscovery/PluginI.cpp')
-rw-r--r-- | cpp/src/IceDiscovery/PluginI.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/IceDiscovery/PluginI.cpp b/cpp/src/IceDiscovery/PluginI.cpp index 643bc894a2d..01846fb7eab 100644 --- a/cpp/src/IceDiscovery/PluginI.cpp +++ b/cpp/src/IceDiscovery/PluginI.cpp @@ -103,6 +103,19 @@ PluginI::initialize() Ice::ObjectPrx lookupPrx = _communicator->stringToProxy("IceDiscovery/Lookup -d:" + lookupEndpoints); lookupPrx = lookupPrx->ice_collocationOptimized(false); // No collocation optimization for the multicast proxy! + try + { + // Ensure we can establish a connection to the multicast proxy + lookupPrx->ice_getConnection(); + } + catch(const Ice::LocalException& ex) + { + ostringstream os; + os << "unable to establish multicast connection, IceDiscovery will be disabled:\n"; + os << "proxy = " << lookupPrx << '\n'; + os << ex; + throw Ice::PluginInitializationException(__FILE__, __LINE__, os.str()); + } // // Add lookup and lookup reply Ice objects |