qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r762312 - /qpid/branches/0.5-release/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
Date Mon, 06 Apr 2009 12:38:56 GMT
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


Mime
View raw message