summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
Commit message (Collapse)AuthorAgeFilesLines
* Replaced the earlier-removed init function (in ManagementAgent.h) that usesTed Ross2010-05-253-4/+63
| | | | | | | | ConnectionSettings. Created a ConnectionSettings in the qpid::management name space that mirrors that from the qpid::client namespace. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@948046 13f79535-47bb-0310-9956-ffa450edef68
* Disable new sasl testing if SASL version is less than 2.1.22.Michael Goulish2010-05-241-0/+3
| | | | | | | Earlier version do not have SASL_PATH_TYPE_CONFIG, which this testing requires. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947850 13f79535-47bb-0310-9956-ffa450edef68
* The cmake build caught my omission of this unused arg.Michael Goulish2010-05-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947764 13f79535-47bb-0310-9956-ffa450edef68
* Jira QPID-2617 -- make sasl-based tests config files relocatableMichael Goulish2010-05-244-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, sasl-based testing cannot be fully automated because the sasl db must be located in the standard installation location of /etc/sasl2. * Created a new directory "sasl_config" under cpp/src/tests * added a new makefile fragment "sasl.mk" to cpp/src/Makefile.am conditionally included basedon HAVE_SASL, which is defined by configure. ( NOTE: should be in cpp/src/tests/Makefile.am, but getting an "saslpasswd2: generic failure" when I try that. ) * The sasl.mk fragment uses saslpasswd2 to create a sasl db in cpp/src/tests/sasl_config that defines two users with eponymous passwords. * In test cluster_authentication_soak.cpp, make the cluster name random. * make SaslAuthenticator code accept and use a config path * give cluster_authentication_soak self-test capability. the test is meant to detect two problems: - broker failure - perftest hang so give it flags that will force either of those conditions. This allows me to (anually) ensure that the test really does detect those conditions when they occur. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947748 13f79535-47bb-0310-9956-ffa450edef68
* QMF: add bindEvent api to allow filtering of unsolicted events.Kenneth Anthony Giusti2010-05-211-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947084 13f79535-47bb-0310-9956-ffa450edef68
* Fix broker core dump during start-up caused by un-initialized mAgent pointer.Alan Conway2010-05-211-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@947081 13f79535-47bb-0310-9956-ffa450edef68
* QMF: provide event filter api for python consoleKenneth Anthony Giusti2010-05-202-11/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946801 13f79535-47bb-0310-9956-ffa450edef68
* Removed the logic in the broker's management agent that detected name ↵Ted Ross2010-05-203-115/+36
| | | | | | | | | | collisions. The new logic will disambiguate colliding names by adding an underscore to the one being inserted. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946773 13f79535-47bb-0310-9956-ffa450edef68
* Prevent race between shutdown() and release() resulting in attempt to close ↵Gordon Sim2010-05-191-3/+12
| | | | | | deleted connector. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946106 13f79535-47bb-0310-9956-ffa450edef68
* Fix RDMA for upstream changes which now require notification on shutdownAndrew Stitcher2010-05-186-85/+209
| | | | | | differently from before git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945904 13f79535-47bb-0310-9956-ffa450edef68
* Fix the behaviour of the EpollPoller when shutdowns and interrupts interactAndrew Stitcher2010-05-181-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945899 13f79535-47bb-0310-9956-ffa450edef68
* QMF: allow consoles to filter agent heartbeats based on agent identification.Kenneth Anthony Giusti2010-05-182-5/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945871 13f79535-47bb-0310-9956-ffa450edef68
* Added locking to make amqp_0_10::SenderImpl thread safe.Alan Conway2010-05-182-11/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2612: Fix to windows build from Chuck RolkeGordon Sim2010-05-182-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945778 13f79535-47bb-0310-9956-ffa450edef68
* Fix retry logic in ConnectionImpl::newSession.Alan Conway2010-05-171-8/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945387 13f79535-47bb-0310-9956-ffa450edef68
* Use new API clients qpid_send, qpid_receive instead of sender/receiver in ↵Alan Conway2010-05-171-1/+3
| | | | | | brokertests.py git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945385 13f79535-47bb-0310-9956-ffa450edef68
* Fix for "Assertion `!mcastSentButNotReceived' failed." in cluster tests.Alan Conway2010-05-171-15/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945383 13f79535-47bb-0310-9956-ffa450edef68
* Added support for user/pass@ syntax in Url.Alan Conway2010-05-171-5/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945211 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2605: Fix to fragmentation logic for delivered messagesGordon Sim2010-05-171-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945048 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2588: Prevent queue being destroyed while still in use.Gordon Sim2010-05-154-12/+67
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944683 13f79535-47bb-0310-9956-ffa450edef68
* Fix errors when new API Receiver is closed while in use.Alan Conway2010-05-142-23/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944461 13f79535-47bb-0310-9956-ffa450edef68
* This reverts r736810. In my testing (admittedly limited) I did not observe ↵Gordon Sim2010-05-142-33/+10
| | | | | | any benefot from the optimisation. It causes a bug where concurrent calls to the non-const getBody() method can result in the encodedSize() method returning 0. This has implications e.g. for store modules where the message size may be incorrectly reported resulting in buffer overruns. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944329 13f79535-47bb-0310-9956-ffa450edef68
* Initial multi-thread unit test for messaging API.Alan Conway2010-05-144-0/+11
| | | | | | | - added Receiver::isClosed() to test for local close. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944261 13f79535-47bb-0310-9956-ffa450edef68
* Cluster + SecurityMichael Goulish2010-05-1412-29/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------------- * initial observation of a problem was a 2% failure rate in perftests of 20,000 messages against a cluster with security enabled. Problem was occasional receit of encrypted frames before the security codec had been enabled. This is fixed with locking in cluster code (no new locks in broker code) and a callback that is fired by broker::ConnectionHandler::Handler to tell the cluster code when the opening handshake has finished. This was never a problem in the non-clustered broker before because everything happened in a single thread. * the brokers that "shadow" the connection must not have null authenticators rather than real ones, so that they go through all the motions but don't do anythig. Only the directly-connected broker can perform the security handshake. * once the directly-connected broker receives the real user ID from its callback, it mcasts that ID to all other brokers. Otherwise the shadowing brokers will al think that the user ID is "anonymous". Check this by doing a substantial perftest, and using qpid-stat -c localhost:PORT to confirm that the brokers all have the same userID for the same connection. * the user ID, negotiated during the Sasl security startup, is communicated from the directly connected broker to all other cluster brokers. * If security is *not* being used, then this code should *not* tell the brokers anything about the userID -- or it will step on the value that is being set by other code pathways. * test program at cpp/src/tests/cluster_authentication_soak is not yet fully automated -- run it with something like "sudo ./cluster_authentication_soak 500" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944158 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2588: Ensure we do not make calls on store for a given queue once it ↵Gordon Sim2010-05-134-2/+13
| | | | | | has been destroyed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944016 13f79535-47bb-0310-9956-ffa450edef68
* Moved FailoverUpdates to qpid::messaging namespace.Alan Conway2010-05-131-8/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943975 13f79535-47bb-0310-9956-ffa450edef68
* New API clients failover in a cluster with SSL connections.Alan Conway2010-05-132-19/+42
| | | | | | | | - Fix setting of reconnect URLs on messaging::Connection. - Added SSL failover test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943974 13f79535-47bb-0310-9956-ffa450edef68
* Fix deadlocks & thread safety in new API classes.Alan Conway2010-05-1310-64/+115
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943973 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in namespace close commentsStephen D. Huston2010-05-131-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943904 13f79535-47bb-0310-9956-ffa450edef68
* Transfer TCP code changes to RDMA codeAndrew Stitcher2010-05-131-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943772 13f79535-47bb-0310-9956-ffa450edef68
* Rearrange RDMA wrapper class code so that the interface and implementationAndrew Stitcher2010-05-137-384/+463
| | | | | | are better separated. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943771 13f79535-47bb-0310-9956-ffa450edef68
* Allow rdma_disconnect() to fail with EINVAL as it appearsAndrew Stitcher2010-05-132-2/+12
| | | | | | | | | to be necessary to call rdma_disconnect() after receiving a disconnection event in Infiniband, but it's not allowed on iWarp as the disconnect event has already disconnected the queue pair. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943770 13f79535-47bb-0310-9956-ffa450edef68
* Remove incorrect optimization in Logger.Alan Conway2010-05-121-3/+3
| | | | | | Use of read-write lock causes a race in log. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943641 13f79535-47bb-0310-9956-ffa450edef68
* Fixes to new API impl to support failover.Alan Conway2010-05-123-16/+20
| | | | | | | | | - client/SslConnector.cpp: throw ConnectionException for errors during connection. - client/amqp0_10/ConnectionImpl.cpp: translate unknown exceptions to ConnectionError. - client/amqp0_10/FailoverUpdates.cpp: interrupt receiver by closing session in dtor. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943489 13f79535-47bb-0310-9956-ffa450edef68
* Delay generating URL in cluster till global constructors to handle ↵Alan Conway2010-05-121-10/+13
| | | | | | multi-protocol URLs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943488 13f79535-47bb-0310-9956-ffa450edef68
* This commit contains a fix for QPID-2600Rajith Muditha Attapattu2010-05-122-27/+48
| | | | | | | | | | Added a test case to check if all allowed chars are accepted and the rest is rejected. Added a check for empty continuation lines. Improved error reporting by adding a line number. Removed test_allowed_chars_for_username method from acl.py as the check for group name will flag the "@" char, making this test case redundent. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943351 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Fix failover updates to set correct option name; clear list valued ↵Gordon Sim2010-05-112-1/+3
| | | | | | option on setting it rather than merely appending to it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943160 13f79535-47bb-0310-9956-ffa450edef68
* Support for multiple protocols in qpid::Url.Alan Conway2010-05-1119-135/+127
| | | | | | | | | | - simplified qpid::Address to hold (protocol,host,port) triples. - protocol plugins call Url:addProtocol to add tags to Url parser. - use Address::protocol when establishing connections. - ssl_test: tests using URL to connect. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943130 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Add default constructor for Connection; add option to set url on ↵Gordon Sim2010-05-112-5/+17
| | | | | | existing connection. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943071 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Fix bug preventing re-establishment of credit on reconnectGordon Sim2010-05-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943036 13f79535-47bb-0310-9956-ffa450edef68
* qmf: bugfix - remove parse of non-present supertype fieldKenneth Anthony Giusti2010-05-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942861 13f79535-47bb-0310-9956-ffa450edef68
* Keep dispatching the condition until it is cleared; resolves QPID-2587.Stephen D. Huston2010-05-071-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942096 13f79535-47bb-0310-9956-ffa450edef68
* Correct brokertest.retry logic.Alan Conway2010-05-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941852 13f79535-47bb-0310-9956-ffa450edef68
* Use UnauthorizedAccessException for ACL violations rather than ↵Gordon Sim2010-05-063-14/+14
| | | | | | NotAllowedException git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941636 13f79535-47bb-0310-9956-ffa450edef68
* Allow empty subject for direct- and xml- exchangesGordon Sim2010-05-051-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941306 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2186: Small adjustments to previous fix:Andrew Stitcher2010-04-291-5/+7
| | | | | | | - Turn one of the "if"s into an assert - Fix incorrect scope for unlocking Timer monitor around fire() callback. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939156 13f79535-47bb-0310-9956-ffa450edef68
* Don't try to get the top() of an empty queue and use it. Resolves (I ↵Stephen D. Huston2010-04-281-8/+16
| | | | | | believe) QPID-2186. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939117 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2083: Added some error messages for particular codesGordon Sim2010-04-281-19/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939066 13f79535-47bb-0310-9956-ffa450edef68
* BZ572245: Clustering can force message persistence when one node remains. ↵Kim van der Riet2010-04-281-5/+10
| | | | | | Fix for problem in which forcing persistence on one queue but not another results in an error if a message is sent to both and the message is consumed from the non-forced queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@939014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2083: Some improvements to error handling for NSS based SSL implementation.Gordon Sim2010-04-284-10/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@938992 13f79535-47bb-0310-9956-ffa450edef68