summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* Revert commits r981517 and r981435 that moved periodic purging of queues ↵Gordon Sim2010-08-115-22/+31
| | | | | | onto cluster's timer. If the timer fires during an update it causes errors; it also puts a potentially time consuming task on the clusters dispatch thread. Instead don't purge LVQs to avoid cluster inconsistencies (and more directly the assertion that aims to prevent these). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984357 13f79535-47bb-0310-9956-ffa450edef68
* Fix test race conditions causing cluster_tests.py:management_test to hang.Alan Conway2010-08-101-11/+5
| | | | | | | | Got rid of expect_fail, ignore exceptions in the caller. Avoid concurrent calls to _cleanup, call only from from wait/poll. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984017 13f79535-47bb-0310-9956-ffa450edef68
* Fixed memory management error in cluster::Quorum causing problems with ↵Alan Conway2010-08-092-4/+5
| | | | | | | | | | --cluster-cman. Sometimes caused brokers using --cluster-cman to fail with a "no permission" or "bad file-descriptor" error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@983786 13f79535-47bb-0310-9956-ffa450edef68
* Fix crash on exit with --cluster-cman.Alan Conway2010-08-051-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982698 13f79535-47bb-0310-9956-ffa450edef68
* Fix ClusterFailover.cpp and ForkedBroker.cpp to avoid using the default data ↵Alan Conway2010-08-042-3/+15
| | | | | | | | | directory. Was causing tests to fail because of a pre-existing lock file in the default data dir. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982374 13f79535-47bb-0310-9956-ffa450edef68
* Fix race conditions in brokertest.py and cluster_tests.py.Alan Conway2010-08-041-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982309 13f79535-47bb-0310-9956-ffa450edef68
* Disable non-0 session timeouts.Alan Conway2010-08-038-15/+66
| | | | | | | | | | Since session resume is not fully implemented, non-0 session timeouts are of no use. Moreover the partial implementation causes problems in a cluster as stale sessions kept alive by a timeout can interfere with failover and updates. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981933 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in setting of the app-id header (it was set in the ↵Ted Ross2010-08-022-3/+19
| | | | | | | | | | application-headers rather than the message-properties). Made the broker agent more selective about when it broadcasts console-added messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981592 13f79535-47bb-0310-9956-ffa450edef68
* Give queue cleaner task an explicit nameGordon Sim2010-08-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981517 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that for clustered broker the queue cleaner is run on the correct thread.Gordon Sim2010-08-025-8/+46
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2782: update qmf console binding api.Kenneth Anthony Giusti2010-08-014-22/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981277 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2768: allow '/' after name in address without an explicit subjectGordon Sim2010-07-291-5/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980441 13f79535-47bb-0310-9956-ffa450edef68
* Added doxygen comments.Jonathan Robie2010-07-281-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980174 13f79535-47bb-0310-9956-ffa450edef68
* Improved doxygen comments.Jonathan Robie2010-07-281-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980163 13f79535-47bb-0310-9956-ffa450edef68
* Made the new C++ API more friendly for swig-wrapping.Ted Ross2010-07-284-0/+5
| | | | | | | | | | - Added Message::setProperty() as an alternative to using getProperties() to obtain a writable reference to a Variant::Map. - Added unit testing for this new method. - Added #ifndef SWIG conditions around the declarations of non-member operator<< methods. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980147 13f79535-47bb-0310-9956-ffa450edef68
* Added comment on AMQP version independence.Jonathan Robie2010-07-281-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980142 13f79535-47bb-0310-9956-ffa450edef68
* Improved doxygen comments for class description.Jonathan Robie2010-07-281-5/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980140 13f79535-47bb-0310-9956-ffa450edef68
* Improved doxygen documentation of SessionState.Jonathan Robie2010-07-281-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980096 13f79535-47bb-0310-9956-ffa450edef68
* Removed unused header files.Ted Ross2010-07-271-7/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979857 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug in test code: invalid use of c_str()Alan Conway2010-07-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979803 13f79535-47bb-0310-9956-ffa450edef68
* Minor fix to help message of qpid-cpp-benchmark.Alan Conway2010-07-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979739 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2702 --max-connections does not work when using cluster.Alan Conway2010-07-231-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@967215 13f79535-47bb-0310-9956-ffa450edef68
* Race condition in cluster+management, inconsistent errors like:Alan Conway2010-07-232-23/+46
| | | | | | | | | | | | "confirmed < (2097+0) but only sent < (2096+0)" Management messages are generated if a managed objects properties have changed since the last update. Properties of the cluster object (members and status) were sometimes being changed outside the delivery context which could create inconsistencies in the cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966933 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: agent label in wrapped (python, ruby) qmf agent was not transmitted ↵Ted Ross2010-07-221-2/+2
| | | | | | | | | to the consoles. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2754: fix management object database locking problem.Kenneth Anthony Giusti2010-07-223-112/+208
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966795 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug in cluster with authentication: nodes exit with "unauthorized-access"Alan Conway2010-07-205-1/+29
| | | | | | | | | | Adding a node to a cluster on which authentication is enabled and on which there are existing connections authenticated with mechanisms other than anonymous, may result in nodes exiting the cluster with inconsistent authorisation errors. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@965979 13f79535-47bb-0310-9956-ffa450edef68
* Fix cmake build to correctly enable sasl if libs are detected.Gordon Sim2010-07-162-9/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964709 13f79535-47bb-0310-9956-ffa450edef68
* Fix unreferenced local variable warningStephen D. Huston2010-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964624 13f79535-47bb-0310-9956-ffa450edef68
* Fix unreferenced local variable warningStephen D. Huston2010-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964623 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2734: Tighter control over sasl related test; now passes when ↵Gordon Sim2010-07-152-1/+14
| | | | | | cyrus-sasl not in use. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964571 13f79535-47bb-0310-9956-ffa450edef68
* Fix read-credit bug causing cluster brokers to disconnect clients sporadically.Alan Conway2010-07-143-10/+27
| | | | | | | Also added connection identifier in connection log messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964213 13f79535-47bb-0310-9956-ffa450edef68
* Move libqpidtypes to the front of the libraries list.Alan Conway2010-07-141-1/+1
| | | | | | | Was causing failure of make install "can't find -lqpidtypes". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964197 13f79535-47bb-0310-9956-ffa450edef68
* Specify paths for the generated resource file so it gets picked up correctly ↵Stephen D. Huston2010-07-141-2/+2
| | | | | | when generating projects. Fixes QPID-2728. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964013 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2728 - Patch from Chuck RolkeTed Ross2010-07-131-1/+2
| | | | | | | Fix recent changes to CMake build to properly handle separate source/build directories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963759 13f79535-47bb-0310-9956-ffa450edef68
* QMF: enable python console to pull schema info from agent.Kenneth Anthony Giusti2010-07-122-103/+138
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963479 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2727: Handle exceptions in Broker constructor and call finalise to ↵Gordon Sim2010-07-091-0/+5
| | | | | | safely cleanup plugins git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@962586 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2711 - Patch from Chuck RolkeTed Ross2010-07-085-15/+340
| | | | | | Add version and icon resources to Windows C++ exe/dll files git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961962 13f79535-47bb-0310-9956-ffa450edef68
* QMF: add api to get agent id, and new object id constructor that uses agent id.Kenneth Anthony Giusti2010-07-085-0/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961919 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster-safe assertion in ~Connection.Alan Conway2010-07-081-0/+6
| | | | | | | | Don't trigger cluster-safe asserts in broker::~Connection as it can be called from an IO threads during broker shutdown. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961814 13f79535-47bb-0310-9956-ffa450edef68
* Ensure broker is deleted in main thread, not by global destructors.Alan Conway2010-07-073-14/+18
| | | | | | | This fixes a race condition that was not handled by r959746. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961404 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Don't hold lock while waiting for incoming message in ↵Gordon Sim2010-07-062-1/+38
| | | | | | nextReceiver() call. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960951 13f79535-47bb-0310-9956-ffa450edef68
* Fix link error on fedora 13Alan Conway2010-07-061-3/+1
| | | | | | Removed duplicate .o files linked with cluster_test executable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960894 13f79535-47bb-0310-9956-ffa450edef68
* Defer delivery of messages in cluster-unsafe context.Alan Conway2010-07-056-5/+79
| | | | | | | | | | | | | | | Messages enqueued in a cluster-safe context are synchronized across the cluster. However some messages are delivered in a cluster-unsafe context, for example raising a link established event occurs the connection thread of the establishing connection. This fix deferrs such messages by multicasting them so they can be re-delived in a cluster safe context. See https://bugzilla.redhat.com/show_bug.cgi?id=611543 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960681 13f79535-47bb-0310-9956-ffa450edef68
* Added types/ImportExport.h to installed headers.Alan Conway2010-07-051-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2716: QMF bugfix - set agent name in object idKenneth Anthony Giusti2010-07-021-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960012 13f79535-47bb-0310-9956-ffa450edef68
* Fix sporadic cluster core on exit.Alan Conway2010-07-012-1/+1
| | | | | | | | Fix a race condition that allows a cluster::Connection to be deleted via the Cluster's local map before it was fully initialized. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959752 13f79535-47bb-0310-9956-ffa450edef68
* Fix spordic failure in cluster_test testConnectionKnownHosts.Alan Conway2010-07-012-3/+11
| | | | | | | | | | Very occasional failure of the form: cluster_test.cpp(547): error in "testConnectionKnownHosts": check kb0 == kb2 failed [42179 57640 != 44199 57640 ] ]) Fix is to avoid using possibly out-of-date initial-brokers data from the connection. Only rely on updates received from the amq.failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959751 13f79535-47bb-0310-9956-ffa450edef68
* Ensure broker is deleted in main thread, not by global destructors.Alan Conway2010-07-011-4/+13
| | | | | | | Finish the fix of r959661 by making it exception safe. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959746 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Translate exceptions to correct type when occuring on creating new ↵Gordon Sim2010-07-012-0/+12
| | | | | | session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959721 13f79535-47bb-0310-9956-ffa450edef68
* Ensure broker is deleted in main thread, not by global destructors.Alan Conway2010-07-011-0/+2
| | | | | | | Fixes core dumps during shutdown. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959661 13f79535-47bb-0310-9956-ffa450edef68