diff options
| author | Alan Conway <aconway@apache.org> | 2010-03-15 20:08:17 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-03-15 20:08:17 +0000 |
| commit | 075cbdaba6fe0075a5527925997e0e1879157513 (patch) | |
| tree | 0070070e9c1677f420a351563e6232dc2ad955ca /cpp/src/qpid/client/ConnectionImpl.cpp | |
| parent | 57b2258cb07e1570eb187e6fc9a26a1395ac1aa7 (diff) | |
| download | qpid-python-075cbdaba6fe0075a5527925997e0e1879157513.tar.gz | |
QPID 24448: throw if no channels available when adding a session.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@923415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ConnectionImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/client/ConnectionImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index 280d3da924..cb9df8e60f 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/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) |
