summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4493: Fixes memory leak in Perl bindings.Darryl L. Pierce2013-03-181-15/+18
| | | | | | Contributed by: Jimmy Jones <jimmyjones2@gmx.co.uk> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457923 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4626: Amqp 0-10 Message getProperty() does not correctly return booleansAndrew Stitcher2013-03-081-0/+2
| | | | | | - Add codec function to convert FieldValue to Variant to support this change git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1454436 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4630: HA Fix starting from persistent store.Andrew Stitcher2013-03-081-1/+2
| | | | | | | Reengineered code for converting a Variant to a FieldValue by reinstating code previously removed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1454435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4630: HA Fix starting from persistent store.Alan Conway2013-03-071-0/+4
| | | | | | | | | | This was implemented in r1390123 but broken by subsequent changes. When re-starting a persistent HA cluster, the broker that becomes primary keeps its recovered queues while backup brokers discard their recovered queues and catch up from the primary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453971 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4629 Improve validation of received frames.Andrew Stitcher2013-03-052-1/+2
| | | | | | | | | | | | | | | | | - Added checks to Buffer to ensure no buffer overruns occur; - Fixed an unsigned comparison error in the checking function. - Improved FieldValue decoding to check we've actually got data before allocating the space for it. - Disallowed large arrays (greater than 256 elements) of zero length elements - avoids potential memory exhaustion problems. [Fixes from Florian Weimer, Red Hat Product Security Team, lightly modified] This change fixes these vulnerabilities CVE-2012-4458 CVE-2012-4459 CVE-2012-4460 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453031 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4588: Moved the swig descriptors to the include/qpid directory.Darryl L. Pierce2013-02-193-0/+1149
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1447877 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4054: C++ Broker connection limits specified per-userCharles E. Rolke2013-02-121-0/+5
| | | | | | | | | | | | | | From the self-test log file: 2013-02-12 15:33:53 [Broker] notice Changing log hires timestamp to 1 2013-02-12 15:33:53.219003940 [Broker] debug Broker::setLogHiresTimestamp() ... 2013-02-12 15:33:53.491318800 [Broker] notice Changing log hires timestamp to 0 2013-02-12 15:33:53 [Broker] debug Broker::setLogHiresTimestamp() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1445358 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4575 Visual Studio 2012 requires exported destructorCharles E. Rolke2013-02-081-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444277 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4536: Remove functionality which automatically makes a brokerAndrew Stitcher2013-01-142-13/+0
| | | | | | 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-4416: Perl bindings fail on getContentPtr with null in the contentDarryl L. Pierce2012-12-181-0/+25
| | | | | | Contributed by Jimmy Jones <jimmyjones2@gmx.co.uk> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1423582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4466: Cannot multiply Durations in Perl bindings.Darryl L. Pierce2012-12-181-0/+6
| | | | | | | | | Adds a swig wrapper for the operator* code from C++ into the Perl bindings. Contributed by Jimmy Jones <jimmyjones2@gmx.co.uk> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1423566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4449 - Reverted much of the original change and re-implemented the fix ↵Ted Ross2012-11-302-3/+13
| | | | | | | | | | in a simpler way. The build-define _IN_QPID_BROKER is now used for modules built in the broker. The shared-pointer changes are conditionally compiled only for in-broker cases. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1415796 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4207 : Relocated all swig .i files to the include directory.Darryl L. Pierce2012-11-273-0/+195
| | | | | | | Updated the build systems to use the new locations. Updated all other .i files to not use relative paths when referencing them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1414294 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4449 - Fixed the API in qpid::management::Manageable to remain backward ↵Ted Ross2012-11-201-1/+2
| | | | | | compatible. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1411761 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3351: Provide ability to specify the network interfacesAndrew Stitcher2012-11-161-0/+19
| | | | | | Added functions to find machines network interface names and addresses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1410362 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed unused isLocalHost() codeAndrew Stitcher2012-11-161-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1410360 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4428: HA add UUID tag to avoid using an out of date queue/exchange.Alan Conway2012-11-142-2/+12
| | | | | | | | | | | | | | | | | Imagine a cluster with primary A and backups B and C. A queue Q is created on A and replicated to B, C. Now A dies and B takes over as primary. Before C can connect to B, a client destroys Q and creates a new queue with the same name. When B connects it sees Q and incorrectly assumes it is the same Q that it has already replicated. Now C has an inconsistent replica of Q. The fix is to tag queues/exchanges with a UUID so a backup can tell if a queue is not the same as the one it has already replicated, even if the names are the same. This all also applies to exchanges. - Minor imrovements to printing UUIDs in a FieldTable. - Fix comparison of void Variants, added operator != git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1409241 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4272: Large amounts of code are duplicated between the SSL and TCP ↵Andrew Stitcher2012-10-242-31/+6
| | | | | | | | | | | | | transports Lift Socket into an interface with concrete implementations - BSDSocket, WinSocket and SslSocket - As a side effect completely change the approach we use for platform specific handles: IOHandle now directly carries the platform handle but its real type is only exposed to platform specific code. - Modified RDMA code for the new IOHandle approach git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401559 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4368: Add some more missing export declarationsAndrew Stitcher2012-10-221-1/+1
| | | | | | - Also squash a struct/class warning git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4368: Updated protocol version header handling to recognise 1.0 headersGordon Sim2012-10-191-2/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1400175 13f79535-47bb-0310-9956-ffa450edef68
* MQPID-4286: QMF queries for HA replication take too long to process (Jason ↵Alan Conway2012-10-152-4/+6
| | | | | | | | | | Dillaman) Rework ManagementAgent locks, get rid of shared buffers that were points of contention. Minor log message improvements in ha code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1398530 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4360: Non-ready HA broker can be incorrectly promoted to primaryAlan Conway2012-10-051-0/+6
| | | | | | | | | | | | A joining broker now attempts to contact all known members of the cluster and check their status. If any brokers are in a state other than "joining" the broker will refuse to promote. This will allow rgmanager to continue to try addresses till it finds a ready brokers. Note this reqiures ha-brokers-url to be a list of all known brokers, not a virtual IP. ha-public-url can still be a VIP. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1394706 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4330: Windows static destructors: threadSafeShutdown() testClifford Allan Jansen2012-09-301-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1392093 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3500 C++ qpidd broker --help should work despite parse errorsCharles E. Rolke2012-09-201-0/+5
| | | | | | | | | | This patch finds and processes --version before anything else. Then it finds --help before fully parsing command line options. In the event of a parse error, help usage may be shown as requested. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388032 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4200: Add exception handling to qpid::client::AutoCancel destructorGordon Sim2012-08-091-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1371320 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4079 log entries track managed object life cyclesCharles E. Rolke2012-07-131-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1361262 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3883: Using application headers in messages causes a very large slowdownAndrew Stitcher2012-07-061-0/+2
| | | | | | | Add subject to outgoing messsage before encoding it to save a round trip decode-encode. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1358275 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fixed struct/class warningAndrew Stitcher2012-07-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355848 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Make qmf/BrokerImportExport.h header publicAlan Conway2012-06-271-0/+42
| | | | | | | | | QMF code generator templates include this header so it is required to build QMF generated code against the -devel packages. Review: https://reviews.apache.org/r/5593/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354712 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Correct template to be strictly standards comformant (work with ↵Andrew Stitcher2012-06-141-1/+1
| | | | | | clang 3.1 & probably gcc 4.7) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 Log categoriesCharles E. Rolke2012-06-121-12/+15
| | | | | | | | Change "IO" to "Network", "AMQP" to "Protocol", and add "Client" category. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349457 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 C++ Broker add log categoriesCharles E. Rolke2012-06-114-8/+189
| | | | | | | | svn merge --reintegrate from branch qpid/branches/qpid-3902/qpid git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349006 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Failover optimization restored.Alan Conway2012-05-281-3/+9
| | | | | | | | | A backup broker that fails over to a new primary can avoid downloading messages that it already has from the previous primary. The backup sends its position to the primary as a client-arg and the primary sends back any necessary dequeues and starts replicating after the messages on the backup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343350 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix some defects found by Coverity static analysis scan of C++ codeKenneth Anthony Giusti2012-05-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342742 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA backups pass identifying info to primary.Alan Conway2012-05-221-0/+3
| | | | | | Pass hostname, management UUID and status in link connection arguments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341580 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4005: Eliminate "using" especially "using namespace" from header fileAndrew Stitcher2012-05-183-13/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1340276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4005: Eliminate "using" especially "using namespace" from header fileAndrew Stitcher2012-05-162-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339403 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4004: Cruft in qpid::framing::Buffer class should be removedAndrew Stitcher2012-05-162-38/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339358 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix bug in RangeSet when insterting a range that covers multiple ↵Alan Conway2012-05-141-6/+4
| | | | | | | | ranges. See new tests added to tests/RangeSet.cpp testRangeSetAddRange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Added SystemInfo::isLocalHost to check if a host name refers to ↵Alan Conway2012-05-081-39/+49
| | | | | | the local host. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1335562 13f79535-47bb-0310-9956-ffa450edef68
* Added missing externs for Windows builds. NO-JIRAStephen D. Huston2012-04-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329410 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3510 - Created a separate option in CommonOptions for the client ↵Ted Ross2012-04-231-1/+3
| | | | | | configuration file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329236 13f79535-47bb-0310-9956-ffa450edef68
* Add missing QPID_COMMON_EXTERN on Invalid needed by recent ha Backup.cpp ↵Stephen D. Huston2012-04-201-1/+1
| | | | | | reference to it. NO-JIRA git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1328372 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3921: C++ header files need tidyupAndrew Stitcher2012-03-281-10/+12
| | | | | | | | | | Tidied up header use of FieldValue.h - Removed all unnecessary includes of FieldValue.h from other header files especially Array.h. (This avoids the world recompiling when working on FieldValue!) - Corrected up header guards in Array.h git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1306595 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3893: C++ broker appears to segfault during ↵Andrew Stitcher2012-03-151-7/+13
| | | | | | | | | | | MultipleTransactedBatchProducerTest Added in lock to preserve the previous read/write concurrency guarantees of FieldTable in the face of the new caching. Fix extra unnecessary decodes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1301001 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3883: Using application headers in messages causes a very large slowdownAndrew Stitcher2012-03-061-9/+9
| | | | | | Fixed Windows breakage caused by previous changes to FieldTable.h git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1297534 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3883: Using application headers in messages causes a very large slowdownAndrew Stitcher2012-03-051-1/+3
| | | | | | | | | Some more tidying up of the FieldTable implementation: - implement a more selective copy constructor - keep the encoded data in case we are used again - more careful raw bytes cache flush git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1297290 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3883: Using application headers in messages causes a very large slowdownAndrew Stitcher2012-03-051-14/+13
| | | | | | | | Lazily decode FieldTables, holding onto the actual raw bytes until we really need to decode, if we encode the FieldTable before decoding it we can just send the raw bytes we captured initially. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1297185 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3883: Using application headers in messages causes a very large slowdownAndrew Stitcher2012-03-051-2/+3
| | | | | | Cache the size of a field table to prevent recomputation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1297184 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3832: Restore transport option for connection (as default for urls that ↵Gordon Sim2012-02-291-0/+4
| | | | | | don't specify one explicitly) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295172 13f79535-47bb-0310-9956-ffa450edef68