From 9cf12d2df4edb6d2df5f75f0f719c88553b6fa46 Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Mon, 11 Jun 2012 02:09:38 +0000 Subject: 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 --- cpp/src/qpid/broker/Connection.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpp/src/qpid/broker/Connection.cpp') 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) { -- cgit v1.2.1