summaryrefslogtreecommitdiff
path: root/cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduce rdma scatter gathers allocated per queue pair to 1 as iWarpAndrew Stitcher2010-12-231-2/+5
| | | | | | only supports 1 sge. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052328 13f79535-47bb-0310-9956-ffa450edef68
* Fix error handling for ibv_post_send() & ibv_port_recv()Andrew Stitcher2010-12-231-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052327 13f79535-47bb-0310-9956-ffa450edef68
* Allow for the case where we get an rdma reject because there is no one listeningAndrew Stitcher2010-12-231-4/+14
| | | | | | on the resolved address git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052326 13f79535-47bb-0310-9956-ffa450edef68
* Factored rdma sending/receiving code out to make manipulatingAndrew Stitcher2010-12-232-24/+42
| | | | | | credit isolated git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052325 13f79535-47bb-0310-9956-ffa450edef68
* Reject attempts to connect with version of rdma protocol we don't understandAndrew Stitcher2010-12-232-1/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052324 13f79535-47bb-0310-9956-ffa450edef68
* Plumb rdma protocol version into Rdma::AsynchIOAndrew Stitcher2010-12-236-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052323 13f79535-47bb-0310-9956-ffa450edef68
* Add in some useful rdma warnings when we reject a connectionAndrew Stitcher2010-12-231-1/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052321 13f79535-47bb-0310-9956-ffa450edef68
* Add code to switch on/off byteswapping of RDMA ConnectionParamsAndrew Stitcher2010-12-232-15/+60
| | | | | | | | depending on detected protocol version. To give some backwards compatibility and fix a previous error which sent connection params in host order. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052320 13f79535-47bb-0310-9956-ffa450edef68
* Added test into RdmaClient to be sure the messages we receive are theAndrew Stitcher2010-12-231-8/+40
| | | | | | | same as the message we sent. Use a pseudo random non-repetetive stream as the message to be sure there is no reordering or repeating of messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052319 13f79535-47bb-0310-9956-ffa450edef68
* Allow RdmaClient to be interruptedAndrew Stitcher2010-12-231-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052318 13f79535-47bb-0310-9956-ffa450edef68
* Two fixes in the Ruby QMF2 binding:Ted Ross2010-12-222-2/+3
| | | | | | | | 1) Fixed typos in the close methods for Console and Agent sessions 2) Fixed the makefile to properly distribute the qmf2.rb wrapper git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1051903 13f79535-47bb-0310-9956-ffa450edef68
* Allow command line utilities to require a given SASL mechanism.Jonathan Robie2010-12-211-0/+49
| | | | | | | | | | Useful if the client's most secure mechanism is suspect, e.g. if Kerberos configuration problems may exist. Also useful in a variety of test scenarios. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1051700 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug that led to client doxygen using broker doxygen main page.Jonathan Robie2010-12-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050565 13f79535-47bb-0310-9956-ffa450edef68
* Change tmp directories from /tmp/sasl_fed/RANDOM to /tmp/sasl_fed_RANDOM.Michael Goulish2010-12-172-3/+3
| | | | | | | | | Otherwise, if user A runs these tests first, user B can't come along and run them later -- if he doesn't have write permission to the /tmp/sasl_fed directory which user A already created. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050493 13f79535-47bb-0310-9956-ffa450edef68
* Made qpid-xxx management scripts callable as python functions.Jonathan Robie2010-12-171-18/+124
| | | | | | | | | | | | | | | | | | | | | Examples (from cli_tests.py): def qpid_config_api(self, arg = ""): script = import_script(checkenv("QPID_CONFIG_EXEC")) broker = ["-a", "localhost:"+str(self.broker.port)] return script.main(broker + arg.split()) def qpid_route_api(self, arg = ""): script = import_script(checkenv("QPID_ROUTE_EXEC")) return script.main(arg.split()) Useful primarily for qpid-config, qpid-route, and qpid-cluster. Probably not useful for qpid-stat, qpid-printevents, qpid-queue-stats, which just create screen output. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050425 13f79535-47bb-0310-9956-ffa450edef68
* Include the new sasl_fed_ex test in EXTRA_DIST.Michael Goulish2010-12-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050424 13f79535-47bb-0310-9956-ffa450edef68
* In broker::ConectionHandler, use the security settings, if any, Michael Goulish2010-12-164-12/+259
| | | | | | | | | | | provided by the transport layer when starting SASL. This allows the SASL mechanism EXTERNAL to be satisfied with SSL transport security. The test, sasl_fed_ex, uses this SASL/SSL security on a federated link between two brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050162 13f79535-47bb-0310-9956-ffa450edef68
* Updates to the V2-style qmf-generation templates:Ted Ross2010-12-162-3/+5
| | | | | | | | 1) Added include directives in the .h template for convenience 2) Moved the schema-registration out of the class constructor and into a method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049754 13f79535-47bb-0310-9956-ffa450edef68
* Added missing initializer in the QueryImpl constructor.Ted Ross2010-12-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049753 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2967 Windows broker fails to destroy connections if client exits abruptlyCharles E. Rolke2010-12-151-3/+4
| | | | | | | In win::AsynchIOReadComplete(): If there is no data, always call notifyEof(). If status is nonZero then also call notifyDisconnect(). Reviewed by astitcher. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049702 13f79535-47bb-0310-9956-ffa450edef68
* Temporarily raise the logging level for ↵Alan Conway2010-12-151-0/+2
| | | | | | cluster_tests.LongTests.test_management and test_management_qmf to debug a sporadic failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049698 13f79535-47bb-0310-9956-ffa450edef68
* Fix flow control for qpid-cpp-benchmark with multiple senders.Alan Conway2010-12-153-17/+21
| | | | | | Ensure senders & receivers agree on number of messages sent/received. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049656 13f79535-47bb-0310-9956-ffa450edef68
* Bug 662765 - Management broker ID should be the same for members of a cluster.Alan Conway2010-12-157-25/+34
| | | | | | | Replicate management UUID and name to members of a cluster. See https://bugzilla.redhat.com/show_bug.cgi?id=662765. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049566 13f79535-47bb-0310-9956-ffa450edef68
* Added an option to the qmf-gen tool to generate v2-style schema declarations.Ted Ross2010-12-156-8/+257
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049425 13f79535-47bb-0310-9956-ffa450edef68
* Add end-to-end flow control to qpid-send, qpid-receive and qpid-cpp-benchmark.Alan Conway2010-12-143-9/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049286 13f79535-47bb-0310-9956-ffa450edef68
* ManagementAgent.cpp: consistent logging of message lengths.Alan Conway2010-12-131-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1045258 13f79535-47bb-0310-9956-ffa450edef68
* Modified qpid-cluster to support the way it is called from Jonathan Robie2010-12-101-1/+1
| | | | | | | | | | | | cluster_tests.StoreTests.test_persistent_partial_failure. Corrected test_persistent_partial_failure so that it no longer sends the name of the script as the first parameter - optparse expects this for arguments from sys.argv, but not for other argument lists. Fixed bug assigning host name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044468 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Disable test when python lib is not availableGordon Sim2010-12-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044308 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Add QMF method to dynamically set the log level.Gordon Sim2010-12-1011-5/+239
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044248 13f79535-47bb-0310-9956-ffa450edef68
* Defer update of managaement agent to end of update process.Alan Conway2010-12-086-62/+51
| | | | | | | | | | | Move updating of the management agent to the very end of the update process, after all objects used by the update process itself have been deleted. Before the fix deletions from the update process itself (deleting the qpid.cluster-update queue and its binding to the default exchange) were sporadically appearing as extra delete messages on the updatees management agent and causing inconsistency. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043621 13f79535-47bb-0310-9956-ffa450edef68
* Comment explaining the nodict flag.Michael Goulish2010-12-071-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043073 13f79535-47bb-0310-9956-ffa450edef68
* Add missing files qpid/cluster/UpdateDataExchange.h,.cxx to cluster.cmake.Alan Conway2010-12-061-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1042717 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2963: revert changes to Doxygen header from r957222, and also remove ↵Robert Gemmell2010-12-051-9/+20
| | | | | | duplicated html,head,title,body tags git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1042473 13f79535-47bb-0310-9956-ffa450edef68
* fix signed vs unsigned compare errorsKenneth Anthony Giusti2010-12-031-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041835 13f79535-47bb-0310-9956-ffa450edef68
* add unit tests for cluster replication of deleted broker mgmt objectsKenneth Anthony Giusti2010-12-031-9/+362
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041817 13f79535-47bb-0310-9956-ffa450edef68
* bugfix in deleted obj import/export apiKenneth Anthony Giusti2010-12-021-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041582 13f79535-47bb-0310-9956-ffa450edef68
* fix distcheck build problem with broker mgmt unit testKenneth Anthony Giusti2010-12-021-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041424 13f79535-47bb-0310-9956-ffa450edef68
* revert nodist makefile change to fix bootstrap errorKenneth Anthony Giusti2010-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041386 13f79535-47bb-0310-9956-ffa450edef68
* enable broker mgmt agent test, fix distcheck errors.Kenneth Anthony Giusti2010-12-022-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041377 13f79535-47bb-0310-9956-ffa450edef68
* Added new arg to code thaat gets compiled when HAVE_SASL is false.Michael Goulish2010-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041286 13f79535-47bb-0310-9956-ffa450edef68
* Modified cluster_tests causes broker shut down with invalid-argument error.Alan Conway2010-12-0111-51/+576
| | | | | | | | | | Described in https://bugzilla.redhat.com/show_bug.cgi?id=655078. The management agent's deleted-object list was not being replicated to new members joining the cluster, so management generated fewer deleted object notifications on the newer member, causing it to fail with an invalid-argument error. The list is now being replicated correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041181 13f79535-47bb-0310-9956-ffa450edef68
* Add missing call to Message::setTimestamp in ManagementAgent::sendBufferLH.Alan Conway2010-12-011-2/+3
| | | | | | | | Without this, messages generated here will not be expired consistently in a cluster which may cause a broker to become inconsistent and exit with an invalid-argument error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041180 13f79535-47bb-0310-9956-ffa450edef68
* Enable cluster-safe assertions on transition to CATCHUPAlan Conway2010-12-012-4/+6
| | | | | | | | | Delaying until READY was causing multiple clientConnect management events to be raised, because broker::Connection::setUserId relies on sys::isCluster to avoid producing duplicate events with cluster::Connection::announce git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041179 13f79535-47bb-0310-9956-ffa450edef68
* Add a unit_test fixture for the Brokers internal management agent.Kenneth Anthony Giusti2010-12-017-6/+408
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041150 13f79535-47bb-0310-9956-ffa450edef68
* Bring QPID .NET Binding examples more in line with cpp examples.Charles E. Rolke2010-12-0112-33/+88
| | | | | | | | 1. Return 0/1 from main to indicate success/failure, where possible. 2. Call sender's session.Sync() after transmitting messages and not waiting for responses. 3. Add third arg connectionOptions as used in cpp examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041141 13f79535-47bb-0310-9956-ffa450edef68
* Added new arg to Saslfactory::createMichael Goulish2010-12-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041071 13f79535-47bb-0310-9956-ffa450edef68
* Ensure spout example waits for all messages to be sent before detaching sessionCharles E. Rolke2010-11-301-0/+1
| | | | | | see c++ spout fix r957513 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1040778 13f79535-47bb-0310-9956-ffa450edef68
* This patch was posted in JIRA QPID-2949.Michael Goulish2010-11-304-12/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It provides a way to tell SaslFactory that console interaction is NOT ok. i.e. if the code is running as part of a broker, or a demonized client of some kind. Just tell it to never do interaction, and any patch attempt to interact will be treated as an error. This script demonstrates that all goes well if you supply enough info : rm -rf /tmp/data_1 /tmp/data_2 mkdir /tmp/data_1 /tmp/data_2 # in window 1: ../qpidd -p 5672 --data-dir /tmp/data_1 --auth=yes --mgmt-enable=yes \ --log-enable info+ ./qpidd_1.log --log-source yes \ --sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config # in window 2: ../qpidd -p 10000 --data-dir /tmp/data_2 --auth=yes --mgmt-enable=yes \ --log-enable info+ ./qpidd_1.log --log-source yes \ --sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config # in window 3 ( from qpid dir ) ./tools/src/py/qpid-route dynamic add zig/zig@localhost zig/zig@localhost:10000 qmf.default.direct # and now view the created route ./tools/src/py/qpid-route route list localhost:5672 If you say auth=no, that works fine also. HOWEVER PLEASE NOTE -- if you say auth=yes, but then do not supply enough into to avoid the need for interaction, the attempted interaction will result in the connection being closed. Then the originating broker will re-try the connection, and you will get a two-broker infinite loop until you fix it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1040689 13f79535-47bb-0310-9956-ffa450edef68
* Binds integer, floating point, or string-typed headers using appropriate ↵Jonathan Robie2010-11-262-6/+87
| | | | | | datatypes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1039478 13f79535-47bb-0310-9956-ffa450edef68
* Increase the broker start timeout to 90 seconds; sometimes the SQL db create ↵Stephen D. Huston2010-11-261-1/+1
| | | | | | takes a minute or more. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1039421 13f79535-47bb-0310-9956-ffa450edef68