diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-10-23 11:19:55 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-10-23 11:19:55 +0200 |
commit | 113775a1ac1d1a4298ddc1fba661c1bad0b80906 (patch) | |
tree | a85b68e8a8f140fb01e113aa8cdb5fc1a47e62b1 /cpp/src/IceGrid/SessionI.cpp | |
parent | Added support for DESTDIR in gradle build (diff) | |
download | ice-113775a1ac1d1a4298ddc1fba661c1bad0b80906.tar.bz2 ice-113775a1ac1d1a4298ddc1fba661c1bad0b80906.tar.xz ice-113775a1ac1d1a4298ddc1fba661c1bad0b80906.zip |
Fixed ICE-5759: IceGrid activation test failure on Windows
Diffstat (limited to 'cpp/src/IceGrid/SessionI.cpp')
-rw-r--r-- | cpp/src/IceGrid/SessionI.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp index f7f656e846f..6afba2bbf10 100644 --- a/cpp/src/IceGrid/SessionI.cpp +++ b/cpp/src/IceGrid/SessionI.cpp @@ -62,43 +62,6 @@ newAllocateObject(const SessionIPtr& session, const IceUtil::Handle<T>& cb) return new AllocateObject<T>(session, cb); } -class ConnectionCallbackI : public Ice::ConnectionCallback -{ -public: - - ConnectionCallbackI(const BaseSessionIPtr& session) : _session(session) - { - } - - virtual void - heartbeat(const Ice::ConnectionPtr&) - { - try - { - _session->keepAlive(Ice::Current()); - } - catch(const Ice::Exception&) - { - } - } - - virtual void - closed(const Ice::ConnectionPtr&) - { - try - { - _session->destroyImpl(false); - } - catch(const Ice::Exception&) - { - } - } - -private: - - const BaseSessionIPtr _session; -}; - } BaseSessionI::BaseSessionI(const string& id, const string& prefix, const DatabasePtr& database) : @@ -121,12 +84,6 @@ BaseSessionI::~BaseSessionI() } void -BaseSessionI::setConnectionCallback(const Ice::ConnectionPtr& con) -{ - con->setCallback(new ConnectionCallbackI(this)); -} - -void BaseSessionI::keepAlive(const Ice::Current& current) { Lock sync(*this); @@ -212,10 +169,6 @@ SessionI::_register(const SessionServantManagerPtr& servantManager, const Ice::C // This is supposed to be called after creation only, no need to synchronize. // _servantManager = servantManager; - if(con) - { - setConnectionCallback(con); - } return _servantManager->addSession(this, con, ""); } |