Author: gsim Date: Wed Apr 8 10:06:56 2009 New Revision: 763163 URL: http://svn.apache.org/viewvc?rev=763163&view=rev Log: QPID-1785: Prevent session.detach following execution.exception from destroying the connection.
Modified: qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp Modified: qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp?rev=763163&r1=763162&r2=763163&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp (original) +++ qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp Wed Apr 8 10:06:56 2009 @@ -111,9 +111,11 @@ Mutex::ScopedLock l(lock); s = sessions[frame.getChannel()].lock(); } - if (!s) - throw NotAttachedException(QPID_MSG("Invalid channel: " << frame.getChannel())); - s->in(frame); + if (!s) { + QPID_LOG(info, "Dropping frame received on invalid channel: " << frame); + } else { + s->in(frame); + } } bool ConnectionImpl::isOpen() const --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org