From 2e20fb9010a9aa2d3f81cc69540fbe0c3771a394 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 13 Jul 2012 18:33:23 +0000 Subject: QPID-4133: (Jason Dillaman) Non-responsive peer in federated link can result in entire cluster shutdown Fix is to not start link processing until the connection is open. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1361321 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Link.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/Link.cpp b/qpid/cpp/src/qpid/broker/Link.cpp index 1be388b989..297c5e22a9 100644 --- a/qpid/cpp/src/qpid/broker/Link.cpp +++ b/qpid/cpp/src/qpid/broker/Link.cpp @@ -498,7 +498,9 @@ void Link::maintenanceVisit () } } } - else if (state == STATE_OPERATIONAL && (!active.empty() || !created.empty() || !cancellations.empty()) && connection != 0) + else if (state == STATE_OPERATIONAL && + (!active.empty() || !created.empty() || !cancellations.empty()) && + connection && connection->isOpen()) connection->requestIOProcessing (boost::bind(&Link::ioThreadProcessing, this)); } -- cgit v1.2.1