You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2009/04/06 14:38:56 UTC
svn commit: r762312 -
/qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
Author: gsim
Date: Mon Apr 6 12:38:55 2009
New Revision: 762312
URL: http://svn.apache.org/viewvc?rev=762312&view=rev
Log:
QPID-1785: Prevent session.detach frame following an execution.exception causing connection to be closed.
Modified:
qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
Modified: qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp?rev=762312&r1=762311&r2=762312&view=diff
==============================================================================
--- qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp (original)
+++ qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp Mon Apr 6 12:38:55 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-subscribe@qpid.apache.org