summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-03-15 20:08:17 +0000
committerAlan Conway <aconway@apache.org>2010-03-15 20:08:17 +0000
commit63097bd54b45cc6922a9af5a01c35db14befc537 (patch)
tree1a70b57e4135e810764dd5ef42a43d591ec823e7 /qpid/cpp
parent600a7bfe6b25448f68f266996a2f8e6700c69eac (diff)
downloadqpid-python-63097bd54b45cc6922a9af5a01c35db14befc537.tar.gz
QPID 24448: throw if no channels available when adding a session.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@923415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/client/ConnectionImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
index 280d3da924..cb9df8e60f 100644
--- a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
+++ b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
@@ -195,7 +195,8 @@ void ConnectionImpl::addSession(const boost::shared_ptr<SessionImpl>& session, u
throw SessionBusyException(QPID_MSG("Channel " << ss->getChannel() << " attached to " << ss->getId()));
} //else channel is busy, but we can keep looking for a free one
}
-
+ // If we get here, we didn't find any available channel.
+ throw ResourceLimitExceededException("There are no channels available");
}
void ConnectionImpl::handle(framing::AMQFrame& frame)