diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-06-27 19:44:29 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-06-27 19:44:29 +0200 |
commit | 53c4362f0810319cfd5f4b1d7df40e43fe701911 (patch) | |
tree | 35f415e462d1c28fd346aaf2c3aefeae08039ca1 /cpp/src/IceDiscovery/PluginI.cpp | |
parent | ICE-8162 - Compatibility fix for PHP 7.2 (diff) | |
download | ice-53c4362f0810319cfd5f4b1d7df40e43fe701911.tar.bz2 ice-53c4362f0810319cfd5f4b1d7df40e43fe701911.tar.xz ice-53c4362f0810319cfd5f4b1d7df40e43fe701911.zip |
Fixed ICE-8157 - ignore responses from old requests and removed duplicated proxies for replica groups
Diffstat (limited to 'cpp/src/IceDiscovery/PluginI.cpp')
-rw-r--r-- | cpp/src/IceDiscovery/PluginI.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceDiscovery/PluginI.cpp b/cpp/src/IceDiscovery/PluginI.cpp index 8e03497e85e..b1e7e58edd2 100644 --- a/cpp/src/IceDiscovery/PluginI.cpp +++ b/cpp/src/IceDiscovery/PluginI.cpp @@ -148,8 +148,10 @@ PluginI::initialize() _lookup = ICE_MAKE_SHARED(LookupI, locatorRegistry, ICE_UNCHECKED_CAST(LookupPrx, lookupPrx), properties); _multicastAdapter->add(_lookup, Ice::stringToIdentity("IceDiscovery/Lookup")); - Ice::ObjectPrxPtr lookupReply = _replyAdapter->addWithUUID(ICE_MAKE_SHARED(LookupReplyI, _lookup))->ice_datagram(); - _lookup->setLookupReply(ICE_UNCHECKED_CAST(LookupReplyPrx, lookupReply)); + _replyAdapter->addDefaultServant(ICE_MAKE_SHARED(LookupReplyI, _lookup), ""); + Ice::Identity id; + id.name = "dummy"; + _lookup->setLookupReply(ICE_UNCHECKED_CAST(LookupReplyPrx, _replyAdapter->createProxy(id)->ice_datagram())); // // Setup locator on the communicator. |