You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2009/06/11 16:24:15 UTC
svn commit: r783790 - /qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp
Author: astitcher
Date: Thu Jun 11 14:24:14 2009
New Revision: 783790
URL: http://svn.apache.org/viewvc?rev=783790&view=rev
Log:
Stop timers on receiving Connection::closed() from lower levels
as well as sending close() to them.
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp?rev=783790&r1=783789&r2=783790&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Connection.cpp Thu Jun 11 14:24:14 2009
@@ -212,6 +212,10 @@
void Connection::idleIn(){}
void Connection::closed(){ // Physically closed, suspend open sessions.
+ if (heartbeatTimer)
+ heartbeatTimer->cancel();
+ if (timeoutTimer)
+ timeoutTimer->cancel();
try {
while (!channels.empty())
ptr_map_ptr(channels.begin())->handleDetach();
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org