diff options
| author | Alan Conway <aconway@apache.org> | 2012-07-17 21:18:14 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-07-17 21:18:14 +0000 |
| commit | 21c93ee219a61d79721ba7f85c67db3b77ebffc8 (patch) | |
| tree | 2a5ce98c3979512b4f9c768c29b246e31f115379 /qpid/cpp | |
| parent | 3f83a8c2ed6ddb472f67de7c598e28ed6146d1e1 (diff) | |
| download | qpid-python-21c93ee219a61d79721ba7f85c67db3b77ebffc8.tar.gz | |
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/branches/0.18@1362653 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Link.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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)); } |
