summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4575: Visual Studio 2012 - Update boost version list to latest release.Charles E. Rolke2013-02-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444934 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4054 C++ Broker connection limits per userCharles E. Rolke2013-02-0910-96/+566
| | | | | | | | | | | | | | 1. Constrain maximum limits to be a few ticks below Uint16_t max to avoid inadvertent wrapping and to allow room for some named constants such as UNLIMITED. 2. Add syntax to Acl rule file quota connections N user|group [user|group] 3. Pseudo user 'all' receives value from command line switch or from Acl rule file. 4. Named constant strings used in comparisons instead of local strings. 5. Connection counts maintained all the time to support reolad of Acl rule file that may change limits. 6. Self tests exercise all the features. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444302 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4575 Visual Studio 2012 requires exported destructorCharles E. Rolke2013-02-081-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444277 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Replace QueueSettings::declaredExclusive with isTemporary.Alan Conway2013-02-084-6/+5
| | | | | | | | Minor reorganization to make things clearer. It was not at all obvious what declaredExclusive mean, isTemporary makes more sense (suggested by gsim https://reviews.apache.org/r/9258/) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444200 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Add QueueSettings::declaredExclusive for exclusive queues.Alan Conway2013-02-075-3/+8
| | | | | | | | | | This is set when the queue is created, before calling ConfigurationObserver::queueCreate, and does not change thereafter. The existing Queue::owner not set until after ConfigurationObserver::queueCreate and does change as ownership can be released and acquired. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443679 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Primary sets explicit qpid.replicate in Queue and Exchange ↵Alan Conway2013-02-0711-101/+109
| | | | | | | | | | | | | | | arguments. Previously both Primary and Backup would calculate the qpid.replicate value independently, assuming the result would be the same. In the case of exclusive queues, the exclusivity can change over time so its possible that primary and backup won't agree. Now only Primary does the calculation with exclusive, auto-delete etc. and puts an explicity qpid.replicate in the queue or event arguments. Backup uses the value set by primary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443678 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Check for backup ready when new backup joins.Alan Conway2013-02-073-3/+9
| | | | | | | | | This test was missing so if there were no backed-up queues the backup would never be marked ready. It was workig because of a separte bug: auto-delete/exclusive queues were being replicated incorrectly so there were always replicated queues (temp queues created by qpid-ha) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Don't shut down on deleting an exchange that is in use as an ↵Alan Conway2013-02-071-0/+9
| | | | | | | | | alternate. Previously threw an exception in this case which shut down the broker. Log warning instead, this is not a fatal event. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443676 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4556: pass max depth options correctly. Patch from Brad Hoekstra.Gordon Sim2013-02-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1442898 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4569: export symbol for module loadingGordon Sim2013-02-061-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1442871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4569: ensure modules are loaded before processing protocol optionGordon Sim2013-02-051-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1442775 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: Fix handling of no-credit consumers in Queue::getNextMessage.Alan Conway2013-01-312-1/+5
| | | | | | | This was discovered while investigating QPID-4555 but could affect any consumer using bounded credt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441163 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA fix deletion of self from membership.Alan Conway2013-01-311-1/+2
| | | | | | | It was possible for a membership update to erase a broker it's own membership. This caused infrequent core dumps while running ha_tests.test_failover_send_receive. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441162 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Fix race condition in rejecting connections.Alan Conway2013-01-312-8/+10
| | | | | | | | Sporadic failure of test_failover_python was caused by a race in rejecting connections. There was a very small window where work could be done by a connection after it was rejected. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441161 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA fix sporadic core dump in BrokerReplicator::disconnectedAlan Conway2013-01-313-9/+24
| | | | | | Unregister as a ConnectionObserver and Exchange at shutdown. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441160 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Fix race condition in QueueGuardAlan Conway2013-01-313-54/+44
| | | | | | | - If cancelled could delay a message without recording it. - Make all actions involving the delayed set and the AsyncCompletion atomic. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441158 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Test bugs causing sporadic faiulres in ↵Alan Conway2013-01-312-12/+19
| | | | | | | | | | | | ha_tests.ReplicationTests.test_auto_delete_timeout The tests were not waiting for the cluster to be ready before starting. Updated HaCluster to wait by default before returning. Increase timeout in calls to wait_no_queue, the default timeout of 1 sec was the same as the auto-delete timeout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441157 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: QPID-3921: More Header file tidy upAndrew Stitcher2013-01-314-15/+10
| | | | | | - Removed all unnecessary includes from qpid/broker/Connection.h git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1440778 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove IO start/stop reading primitives used by removed clusterAndrew Stitcher2013-01-305-62/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1440617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove IO readCredit throttling only used by removed cluster codeAndrew Stitcher2013-01-3015-63/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1440616 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix build error in windows buildAlan Conway2013-01-281-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1439431 13f79535-47bb-0310-9956-ffa450edef68
* Refer to Url consistently as a struct, not a class. Removes warning on MSVC. ↵Stephen D. Huston2013-01-252-2/+2
| | | | | | NO-JIRA git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1438776 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA refactor, re-organise code for clarity and thread safety.Alan Conway2013-01-2314-298/+442
| | | | | | | | | | | | | | | | Introduce Role base class. Primary and Backup are now subclasses of Role. Moved backup/primary specific code from HaBroker to the Backup and Primary roles. HaBroker always holds a single Role, via a thread-safe RoleHolder. RoleHolder ensures atomic transition between roles: the old role is deleted before the new role is created. Membership is now independently thread safe, breaking the potential deadlock between HaBroker and the Roles. Logging improvements and other minor cleanup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437771 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA refactor, centralize critical error shutdown logic.Alan Conway2013-01-234-17/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437742 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4546: review feedback and re-enable federation system testsKenneth Anthony Giusti2013-01-222-4/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437188 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4546: delete links regardless of connection state.Kenneth Anthony Giusti2013-01-222-45/+77
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437187 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add abort() implementation for SSL client code - this make heartbeatsAndrew Stitcher2013-01-221-1/+21
| | | | | | work for SSL client connections too. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437101 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4543 - The Move-Messages method no longer returns an error if no ↵Ted Ross2013-01-212-11/+13
| | | | | | messages were moved. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1436517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4545: expose certain 'internal' symbols necessary for AMQP 1.0 supportGordon Sim2013-01-211-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1436504 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4095: New boost filesystem support. This commit removes the requirement ↵Charles E. Rolke2013-01-182-23/+36
| | | | | | | | | | | for Boost filesystem in Windows. The code in FileSysDir that used Boost is rewritten to use simple windows native calls instead. Now Boost filesystem is not used at all. All references in CMakeLists.txt are removed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1435326 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4516: Undo use of atomic status in HaBroker.cppAlan Conway2013-01-152-39/+29
| | | | | | Fixes issue introduced in r1432273, causing build failures on windows. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433655 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add brokertest.py to EXTRA_DIST, required by ha_tests.py.Alan Conway2013-01-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433143 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4535 Cmake build broken by legacy storeCharles E. Rolke2013-01-141-3/+31
| | | | | | | | | | Check for libaio and uuid. Fix logic error that allowed build to proceed when DB_FOUND was false. Remove unnecessary 'rt' from link. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433127 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: remove passive links.Alan Conway2013-01-144-51/+5
| | | | | | Remove passive code from Link and LinkRegistry, only used by defunct cluster code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433089 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: remove unused testlib.pyAlan Conway2013-01-141-766/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4536: Remove functionality which automatically makes a brokerAndrew Stitcher2013-01-145-127/+10
| | | | | | advertise all its network interfaces as potential failover endpoints. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: sasl_fed_ex testAlan Conway2013-01-141-81/+11
| | | | | | Clean up obsolete code sasl_fed_ex related to defunct cluster testing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433056 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: SessionImplAlan Conway2013-01-142-92/+35
| | | | | | | | | Clean up obsolete code in SessionImpl class used only by defunct cluster code: - Remove SessionImpl::send reframe parameter. - Remove doClearDeliveryPropertiesExchange flag. - Remove disableAutoDetach and autoDetach flag. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433055 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: Obsolete management import/export functions.Alan Conway2013-01-143-560/+0
| | | | | | Remove management fucntions used to import/export data from the cluster module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433054 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: Obsolete comment in BSDSocket.cpp.Alan Conway2013-01-141-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433053 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4516: Sporadic failure in ha_tests test_failover_send_receiveAlan Conway2013-01-116-41/+73
| | | | | | | | | | | | | | Several fixes were required in the code to correct this problem: - Missing break statement in switch. - Remove unused function HaBroker::resetMembership - Abort connection of timed-out backups so they can attempt to reconnect. - New primary resets membership before allowing backups to connect. - Test for and ignore double-promotion. - HaBroker: dynamic logPrefix() shows status. Made status atomic for efficient access for log messages. - Update primary status in membership. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1432273 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA log message missing sequence number.Alan Conway2013-01-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1432263 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed QPID store - reenable in buildCharles E. Rolke2013-01-106-96/+114
| | | | | | | | Add new legacystore.cmake to EXTRA_DIST in makefile suite. Fix cmake scripts for core library and tests. Note: Tests are not truly integrated. Four standalone unit tests are starters for proving functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431635 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4531 : older GCC libs have error on negative-zero cast.Michael Goulish2013-01-101-7/+13
| | | | | | | | This is a real fix, a replacement for r1431435, which was written by a crazy person. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431548 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : undoing r1431435. It's wrong, wrong, wrong!Michael Goulish2013-01-101-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431509 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Expand Variant tests to test previous Variant conversion checkinAndrew Stitcher2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431493 13f79535-47bb-0310-9956-ffa450edef68
* JIRA-4531 : Variant.cpp cast of -0 failing with older GCCMichael Goulish2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4315: Make Windows workAndrew Stitcher2013-01-091-367/+379
| | | | | | More cut-n-paste cargo cult programming git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431116 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4518 : disallow unknown args in config fileMichael Goulish2013-01-092-14/+45
| | | | | | | | | | | | | Change EnvOptMapper::configFileLine to take ar arg telling it if it's OK to have unknown args or not. If not, throw upon encountering. From the higher level of run_broker(), there are two passes of arg parsing. In the first pass it's normal to have unknown args, because the loadable modules are not loaded yet. But I change the second parsing to pass down the arg that says "unknowns are not okay." git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431016 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4315: Changed Connection management name to be supplied by LinkAndrew Stitcher2013-01-0811-86/+61
| | | | | | | code on outgoing connections so that the Link code can correlate the connection with the Link using the name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1430573 13f79535-47bb-0310-9956-ffa450edef68