diff options
| author | Charles E. Rolke <chug@apache.org> | 2012-06-11 02:09:38 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2012-06-11 02:09:38 +0000 |
| commit | 9cf12d2df4edb6d2df5f75f0f719c88553b6fa46 (patch) | |
| tree | ae2391200615b39c1525707976bf2eba72cd13c9 /cpp/src/qpid/broker/Connection.cpp | |
| parent | 76f9fb4077321f08893dafddbbedbeceeafaaeec (diff) | |
| download | qpid-python-9cf12d2df4edb6d2df5f75f0f719c88553b6fa46.tar.gz | |
QPID-4022 C++ Broker connection limits by host ip and by user name.
Rework the strategy to deny connections based on configured limits.
All limits checked in one function from points in broker when the
user's authenticated name is known. Denied connections receive the
AMQP exception instead of getting the socket closed.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index 03ff3d5793..15fffdfcb1 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/cpp/src/qpid/broker/Connection.cpp @@ -107,7 +107,6 @@ Connection::Connection(ConnectionOutputHandler* out_, broker.getConnectionObservers().connection(*this); // In a cluster, allow adding the management object to be delayed. if (!delayManagement) addManagementObject(); - if (!isShadow()) broker.getConnectionCounter().inc_connectionCount(); } void Connection::addManagementObject() { @@ -151,8 +150,6 @@ Connection::~Connection() if (linkHeartbeatTimer) { linkHeartbeatTimer->cancel(); } - - if (!isShadow()) broker.getConnectionCounter().dec_connectionCount(); } void Connection::received(framing::AMQFrame& frame) { |
