summaryrefslogtreecommitdiff
path: root/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the license from the "old" apache copyright noticeAndrew Stitcher2007-07-2015-195/+240
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@558072 13f79535-47bb-0310-9956-ffa450edef68
* * lib/broker/Daemon.cpp, .hAlan Conway2007-07-197-229/+234
| | | | | | | | | | | | | | | | | - Rewrote to remove libdaemon dependency. - PID file stored in /var/run if root, /tmp otherwise. * src/qpidd.cpp: Use new Daemon.cpp. - lock files stored in /var/run (for root) or /tmp. - updated to trunk daemon flag behavior. * lib/broker/Makefile.am (libqpidbroker_la_LIBADD): - Daemon.cpp now needs -lboost_iostreams * NOTICE, README: Removed mention of libdaemon. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@557452 13f79535-47bb-0310-9956-ffa450edef68
* removed optional cppunit as not in distributed packagesCarl C. Trieloff2007-07-161-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556682 13f79535-47bb-0310-9956-ffa450edef68
* clean upCarl C. Trieloff2007-07-161-9/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556680 13f79535-47bb-0310-9956-ffa450edef68
* added notice entriesCarl C. Trieloff2007-07-161-2/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556675 13f79535-47bb-0310-9956-ffa450edef68
* Added license to files that seemed to be missing it.Gordon Sim2007-07-0528-0/+506
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@553447 13f79535-47bb-0310-9956-ffa450edef68
* Patch submitted to qpid-dev by ksmith@redhat.com. Fixes concurrency issues ↵Gordon Sim2007-05-2215-30/+121
| | | | | | | | | | | | | | | | arising from previous move to use singleton apr pool. "My patch does three things: 1) Modifies the APRPool class to use alloc/free semantics for APR memory pools. Each time a caller calls APRPool::get() they'll their own pool reference. I've fixed up all the call sites I can find to also call APRPool::free() at the appropriate time. 2) Caches freed APR memory pools in a STL stack. This cuts down on the number of memory pools created overall. 3) As a result of doing #1 and #2 I've introduced a guard mutex around APRPool::get() and APRPool::free(). This is to prevent concurrent access to the memory pool cache. If it's too heavyweight, the mutex along with the caching mechanism could be removed entirely." git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@540511 13f79535-47bb-0310-9956-ffa450edef68
* Made message less scary when persistence not enabled(!).Gordon Sim2007-05-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@540169 13f79535-47bb-0310-9956-ffa450edef68
* * Makefile.am: added rpmbuild target for consistency with trunk.Alan Conway2007-05-181-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@539594 13f79535-47bb-0310-9956-ffa450edef68
* Added missing files so that make distcheck passes.Gordon Sim2007-05-151-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@538098 13f79535-47bb-0310-9956-ffa450edef68
* Separated out implementation from interop test headers.Gordon Sim2007-05-157-200/+299
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@538079 13f79535-47bb-0310-9956-ffa450edef68
* Fix for acknowledgements (since the addition of the protocol version, the ↵Gordon Sim2007-05-111-2/+2
| | | | | | 'wrong' constructor to BasicAckBody was being called resulting in random values for delivery tag and multiple) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@537171 13f79535-47bb-0310-9956-ffa450edef68
* * Added support for channel.flow:Gordon Sim2007-05-0910-22/+87
| | | | | | | | | | | | | | | | | | | | | | cpp/tests/ChannelTest.cpp cpp/lib/broker/SessionHandlerImpl.cpp cpp/lib/broker/BrokerChannel.h cpp/lib/broker/BrokerChannel.cpp * Fixed client connection closing process: cpp/lib/common/sys/apr/Socket.cpp cpp/lib/client/Connector.h cpp/lib/client/Connector.cpp cpp/lib/client/Connection.h cpp/lib/client/Connection.cpp * Use amq.direct rather than default exchange in P2P test (to interop with java) cpp/tests/BasicP2Ptest.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536584 13f79535-47bb-0310-9956-ffa450edef68
* Altered test case 2, i.e. basic p2p, such that it binds the queue to ↵Gordon Sim2007-05-092-1/+3
| | | | | | | | | | amq.direct rather than relying on the default bindings. Modified the clientid option of the test runner to be -n,--clientname to be consistent with java test runner. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536449 13f79535-47bb-0310-9956-ffa450edef68
* * README: added libdaemon to yum instructions.Alan Conway2007-05-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536339 13f79535-47bb-0310-9956-ffa450edef68
* * lib/broker/Daemon.cpp: Fixed bug causing qpidd -c to sometmes delete the ↵Alan Conway2007-05-081-1/+1
| | | | | | pidfile. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536279 13f79535-47bb-0310-9956-ffa450edef68
* Initial interop tests for c++.Gordon Sim2007-05-088-3/+758
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536253 13f79535-47bb-0310-9956-ffa450edef68
* Add doxygen.timestamp to distribution so make distcheck will pass.Alan Conway2007-05-011-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@534113 13f79535-47bb-0310-9956-ffa450edef68
* Add .M2 tag to rpm releaseAlan Conway2007-04-302-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@533860 13f79535-47bb-0310-9956-ffa450edef68
* Added -M2 tag to RPM release.Alan Conway2007-04-306-14/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@533840 13f79535-47bb-0310-9956-ffa450edef68
* * README: added new dependency, libdaemon.Alan Conway2007-04-309-75/+355
| | | | | | | | | | | | | | | | | | * qpidc.spec.in: libdaemon dependencies. * broker/Daemon.h|cpp: Daemon and pid file management, wrapper for libdaemon. * qpidd.cpp modifid flags -d [ --daemon ] - waits till deamon is listening before returning. * qpidd.cpp: new flags -q [ --quit ] Stop the running daemon politely. -k [ --kill ] Kill the running daemon harshly. -c [ --check ] If daemon is running return 0. --wait SECONDS (=10) Maximum wait for daemon response. --ppid Print daemon pid to stdout * tests/dameon_test: Test daemon startup, shutdown. * deleted tests/broker: obsolete script. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@533819 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 532430 by hand fromAlan Conway2007-04-266-135/+63
| | | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/trunk/qpid/cpp ------------------------------------------------------------------------ r532750 | aconway | 2007-04-26 10:13:14 -0400 (Thu, 26 Apr 2007) | 4 lines - docs/man/qpidd.x: explain file and environment configuration. - src/qpidd.cpp: read config from file. ------------------------------------------------------------------------ r532491 | aconway | 2007-04-25 17:26:53 -0400 (Wed, 25 Apr 2007) | 4 lines Added environment variables as a source of Qpid configuration. Option "foo-bar" will be read from env. QPID_FOO_BAR if not specified on command line. ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@532791 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 532430 by hand fromAlan Conway2007-04-2616-593/+405
| | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/trunk/qpid/cpp ------------------------------------------------------------------------ r532430 | aconway | 2007-04-25 14:06:14 -0400 (Wed, 25 Apr 2007) | 10 lines * qpid/CommonOptions.h: - Convenience classs/functions to use boost::program_options. - CommonOptions class for options common to client/broker. * qpid/broker/Broker.h: - Replaced broker::Configuration with class Broker::Options, derived from CommonOptions. * qpidd.cpp: Updated options handling. * qpid/Exception.h: Added strError function to get std::string from errno. ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@532787 13f79535-47bb-0310-9956-ffa450edef68
* Fixed line endingsAndrew Stitcher2007-03-091-42/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@516451 13f79535-47bb-0310-9956-ffa450edef68
* Send missing recoverOk response to recover.Alan Conway2007-03-051-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@514903 13f79535-47bb-0310-9956-ffa450edef68
* (Patch submitted by Rupert Smith) Small changes to use virtual hosts, merged ↵Robert Greig2007-03-014-45/+45
| | | | | | back in from perftesting_persistent branch. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@513371 13f79535-47bb-0310-9956-ffa450edef68
* Check for existing channel on channel_openGordon Sim2007-02-211-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@510159 13f79535-47bb-0310-9956-ffa450edef68
* * qpidc.spec.in: Add a %changelog entry for 0.1-4.Jim Meyering2007-02-201-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@509737 13f79535-47bb-0310-9956-ffa450edef68
* * qpidc.spec.in (URL): Update URL: and Source0: to point useJim Meyering2007-02-191-2/+2
| | | | | | | http://rhm.et.redhat.com. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@509208 13f79535-47bb-0310-9956-ffa450edef68
* Applied QPID-351 patch 1 with the following mods:Alan Conway2007-02-147-490/+266
| | | | | | | | | | | - Moved "source distro" instructions in front of "subversion checkout" instructions. - Added instructions on using qpid-autotools-install - Added general blurb with links at top - renamed to README, removed other README-* files. - Updated makefiles (spec file was already OK.) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507729 13f79535-47bb-0310-9956-ffa450edef68
* Add durability property to queues and pass this to broker on declare.Gordon Sim2007-02-143-14/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507582 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from Jim Meyering, submitted on dev list:Gordon Sim2007-02-141-1/+1
| | | | | | | | | | | | 2007-02-14 Jim Meyering <jim@meyering.net> * gen/Makefile.am (gen-src.mk): Don't append to $@-t, in case there's a stray copy left over from an interrupted build. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507472 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from Jim Meyering, submitted on dev list:Gordon Sim2007-02-141-1/+1
| | | | | | | | * tests/setup: Remove use of libtool's --debug option. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507458 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from Jim Meyering submitted on dev list:Gordon Sim2007-02-141-3/+2
| | | | | | | | | | | 2007-02-14 Jim Meyering <jim@meyering.net> * qpidc.spec.in: Use an absolute Source0: URL. Suggestion from Ralf Corsepius. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507457 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from Jim Meyering, submitted on dev list:Gordon Sim2007-02-141-4/+4
| | | | | | | | | | | 2007-02-14 Jim Meyering <jim@meyering.net> * configure.ac: Use $enableval, not $enable_APR in the code supporting --disable-apr and --enable-apr. The latter doesn't work. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507455 13f79535-47bb-0310-9956-ffa450edef68
* (Submitted by Rupert Smith) Small ommission corrected.Robert Greig2007-02-131-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@506972 13f79535-47bb-0310-9956-ffa450edef68
* (Submitted by Rupert Smith) Qpid-351, c++ build instructions, all in one file.Robert Greig2007-02-131-0/+222
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@506967 13f79535-47bb-0310-9956-ffa450edef68
* * lib/client/Connection.h - changed default virtual host from '/' to '' as ↵Gordon Sim2007-02-122-2/+2
| | | | | | | | | | per QPID-349 * lib/client/ClientExchange.h - fixed typo in a comment git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@506406 13f79535-47bb-0310-9956-ffa450edef68
* * Fixed typo in make rpm target.Alan Conway2007-01-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499864 13f79535-47bb-0310-9956-ffa450edef68
* * qpidc.spec.in: fixed bad date in changelog.Alan Conway2007-01-251-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499847 13f79535-47bb-0310-9956-ffa450edef68
* * qpidc.spec.in: updated to release 3 for RPM.Alan Conway2007-01-255-24/+42
| | | | | | | | | * gen/make-gen-src-mk.sh: fixed problem with makefile generation in a new checkout. * Other Makefile.am: added missing files to maintainer-clean. * Added missing svn-ignores. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499845 13f79535-47bb-0310-9956-ffa450edef68
* * Removed .txt extension from README NOTICE LICENSE to follow common practice.Alan Conway2007-01-256-5/+5
| | | | | | | | * Updated all references to .txt files. * rpm/Makefile.am: Fixed local-clean target to clean up generaed directories. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499803 13f79535-47bb-0310-9956-ffa450edef68
* 2007-01-24 Jim Meyering <meyering@redhat.com>Gordon Sim2007-01-243-7/+17
| | | | | | | | | | | | | | | | | | | | | Suggestions from Ralf Corsepius in http://bugzilla.redhat.com/220630. * qpidc.spec.in (BuildRequires): Remove redundant cppunit here, too. The previous removal addressed only the redundant _Requires_. (%configure): Add --disable-static, so as not to build unused static libraries. Generate qpidc.spec. Re-factor/generate even more. * qpidc.spec.in: New file. Use it to generate qpidc.spec, substituting PACKAGE and VERSION from configure.ac. (URL): Omit trailing .tar.gz name. That's specified via "Source0". * Makefile.am (qpidc.spec): New rule. (EXTRA_DIST): Add $(PACKAGE).spec and $(PACKAGE).spec.in. (MAINTAINERCLEANFILES): Define. * qpidc.spec: Remove file. Now it's generated. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499374 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Jim Meyering (jim@meyering.net) submitted on dev list.Gordon Sim2007-01-239-22/+2643
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instrument all tests so that they are run via valgrind: check for both errors and leaks. * configure.ac: Add new configure options: --enable-valgrind and --disable-valgrind. For now, the latter is the default. * README-dev: Document (and recommend) --enable-valgrind. * tests/.vg-supp: Add many more, from Gordon Sim for FC5. * configure.ac: Check for valgrind. * tests/Makefile.am (TESTS_ENVIRONMENT): Export VALGRIND. * tests/setup: New file. * tests/run-unit-tests: Use new "setup" file. Invoke DllPlugInTester via $vg (aka valgrind). Refer to the source directory using $pwd, since we're now running from a temporary subdirectory. * tests/run-python-tests: Remove traps. That is now done by "setup". [VERBOSE]: Print qpidd --version. Invoke qpidd via $vg and its absolute name. Add a kludgey "sleep 3", because it can take a while for libtool to start valgrind to start qpidd, in the background. Ideally, the python script would simply sleep-0.3-and-retry for a couple seconds, upon failure of the initial connection attempt. * tests/.vg-supp: New file, exempting known leaks on Debian/unstable. Some of these leaks appear to be legitimate. * tests/Makefile.am (EXTRA_DIST): Add .vg-supp and setup. * qpid-autotools-install (usage): Add a missing backslash. Fix "make distcheck" failure. * docs/api/Makefile.am (EXTRA_DIST): Add user.doxygen git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499049 13f79535-47bb-0310-9956-ffa450edef68
* Fixed creation of error message for unknown channel.Gordon Sim2007-01-221-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@498591 13f79535-47bb-0310-9956-ffa450edef68
* Added the non-standard 'binary' type to the field table implementation to ↵Gordon Sim2007-01-182-0/+13
| | | | | | support the java client. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497439 13f79535-47bb-0310-9956-ffa450edef68
* Close connection when connection.close is sent to client.Gordon Sim2007-01-182-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497341 13f79535-47bb-0310-9956-ffa450edef68
* Some basic additional error logging of framing errors. Gordon Sim2007-01-162-4/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496665 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-08 Jim Meyering <meyering@redhat.com>Alan Conway2007-01-154-6/+7
| | | | | | | | | | | | | | | Ensure that AccumulatedAck.range is not used uninitialized. * lib/broker/AccumulatedAck.h (AccumulatedAck): Make this a class, rather than a struct. (AccumulatedAck::AccumulatedAck): Add a constructor to require initialization of the "range" member. * lib/broker/BrokerChannel.cpp (Channel) [accumulatedAck]: Initialize. * tests/TxAckTest.cpp (TxAckTest) [acked]: Likewise. * tests/AccumulatedAckTest.cpp (testCovers): Initialize local. (testUpdateAndConsolidate): Likewise. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496317 13f79535-47bb-0310-9956-ffa450edef68
* With thanks to Jim Meyering and Rafael Schloming: Fix incorrect error numberAlan Conway2007-01-121-1/+1
| | | | | | | | shown by python test failure in: testDifferentDeclaredType (tests.exchange.MiscellaneousErrorsTests) ... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495661 13f79535-47bb-0310-9956-ffa450edef68