diff options
| author | Charles E. Rolke <chug@apache.org> | 2013-02-27 16:58:33 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2013-02-27 16:58:33 +0000 |
| commit | 4c11465b41b469fdba65713633e50519c6bd9459 (patch) | |
| tree | d4530ea5e0fe29cfaf7607da349806beaf7f175d /cpp/src/qpid/acl/AclReader.cpp | |
| parent | cdcb3558c22b00d9c365e7fab3ac91f56ffaf1e8 (diff) | |
| download | qpid-python-4c11465b41b469fdba65713633e50519c6bd9459.tar.gz | |
QPID-4607: C++ Broker connection limit counting fails
Repair a few small but critical errors in program logic.
Repair several misconceptions in the self test including:
* provide visibility to connections (not sessions) so that they may be closed.
* dodge names that may survive open connections from other tests.
Tests may pass if run first but then fail if run 30th.
The whole acl.py module could use a clean up pass to close out the
50+ open connections that exist that the end of the test.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1450841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/acl/AclReader.cpp')
| -rw-r--r-- | cpp/src/qpid/acl/AclReader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/acl/AclReader.cpp b/cpp/src/qpid/acl/AclReader.cpp index 7eb9b82c64..0fc6437a6c 100644 --- a/cpp/src/qpid/acl/AclReader.cpp +++ b/cpp/src/qpid/acl/AclReader.cpp @@ -264,7 +264,8 @@ namespace acl { } // Propagate nonzero per-user max connection setting from CLI if (cliMaxConnPerUser > 0) { - (*connQuota)[AclData::ACL_KEYWORD_ACL] = cliMaxConnPerUser; + connQuotaRulesExist = true; + (*connQuota)[AclData::ACL_KEYWORD_ALL] = cliMaxConnPerUser; } // Loop to process the Acl file try { @@ -413,6 +414,10 @@ namespace acl { return false; } } + + // We have processed a connection quota rule + connQuotaRulesExist = true; + return true; } |
