summaryrefslogtreecommitdiff
path: root/qpid/cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-6511: AMQP 0.10 windows clients cannot connect to no-auth qpidd broker.Charles E. Rolke2015-05-011-4/+14
| | | | | | | | | | | | 1. Do not negotiate SASL EXTERNAL or PLAIN if no username is specified. Note that a blank PLAIN password is allowed. 2. If SASL ANONYMOUS is negotiated then return a response of "anonymous@<hostname>", which is what the linux client returns. The client provides a username for the host in all cases. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1677224 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6526: fix to last commit, lock needs to be held for attachGordon Sim2015-05-011-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1677197 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6526: make sure that the creation of proton links is done with the lock ↵Gordon Sim2015-04-303-22/+50
| | | | | | held git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1677064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6521: ensure messages received presettled by peer are settled locally; ↵Gordon Sim2015-04-302-3/+6
| | | | | | thanks to Alan Conway for the working patch! git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1677016 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6524: [C++ broker]: Fix for QPID-5107 incomplete for queuesPavel Moravec2015-04-301-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1676982 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add log command to qpid-config to set log levels.Alan Conway2015-04-271-4/+6
| | | | | | | | | Get current level: qpid-config log Set new level: qpid-config log <newlevel> Fixed bugs in getLogLevel and in handling invalid log levels. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1676333 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: Fix float conversion problems.Alan Conway2015-04-168-163/+167
| | | | | | | | | | Previous code would incorrectly convert between float and int types producing nonsense values, and would not allow legal conversions between float and double types. Created FixedWidthIntValue and FixedWidthFloatValue template subclasses to correctly handle conversions. Enabled FieldValue unit tests for float conversions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1674137 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6492: make sure local terminus is null in the attache we send back if ↵Gordon Sim2015-04-151-2/+12
| | | | | | it will be immediately followed by a detach due to error git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673949 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6493: cmake install TARGET component syntax error.Charles E. Rolke2015-04-152-34/+26
| | | | | | | | | | | | | | Patch from Scott M Stark. Reviewed at https://reviews.apache.org/r/33195 This patch worked fine in my tests with the exception that using the install command 'cmake -DCOMPONENT=development -P src/cmake_install.cmake' executes the install but does not produce an install_manifest.txt file. While not essential the install_manifest.txt files are part of my routine housekeeping. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673897 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6484: check for non-existent error descriptionGordon Sim2015-04-105-39/+97
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1672639 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: fix stray letters from commit 1671125Charles E. Rolke2015-04-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671530 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6399: Fix store tests for run_test option syntax change.Alan Conway2015-04-032-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: FieldValue::getFloatingPointValue() converts endian each time it ↵Alan Conway2015-04-035-43/+45
| | | | | | | | | | | | | | | | | | | | | is called. When calling getFloatingPointValue multiple times, the octets are endian-converted each time. Actually we need to make a copy first and then call convertIfRequired(). This fix is from a pull request by Pavel Pokutnev (see the JIRA). commit 4ed0ce9c9b74b136c49735b19efb80489aa495a3 His original patch was correct, I made some additions: - Added a unit test: qpid/cpp/src/tests/FieldValue.cpp - Fixed some incorrect uses of "const" in nearby code. - Replaced a for loop with std::copy, more readable and more optimizable. There are still serious problems with float conversion shown up by the unit tests, the relevant tests are commented out till these issues are fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671125 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix race condition in HA tests, remove useless test.Alan Conway2015-04-031-21/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671124 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6463: Adjust for changes between proton 0.8 and 0.9: test that items ↵Charles E. Rolke2015-03-251-1/+4
| | | | | | exist before trying to delete them git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1669208 13f79535-47bb-0310-9956-ffa450edef68
* Align run_test shell and Powershell versions. Changes the option syntax from ↵Stephen D. Huston2015-03-174-69/+165
| | | | | | two-hyphen to one. Fixes QPID-6399. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1667349 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6444: remove unused functionsGordon Sim2015-03-112-17/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1665954 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6427: Problem building trunk qpid cpp on RHEL 5aconway2015-03-054-6/+6
| | | | | | Fixed a couple of legitimate compiler warnings, worked around a couple of compiler weaknesses. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1664517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6427: Fixed unit test build problem on RHEL 5.aconway2015-03-051-3/+7
| | | | | | RHEL5 compiler choked on some boost template magic, simplified the test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1664479 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6397: [C++ broker] segfault when processing QMF method during periodic ↵Pavel Moravec2015-03-051-1/+3
| | | | | | processing git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1664313 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4710: adjust version checking used by new tx interop tests so as not to ↵Gordon Sim2015-03-041-3/+16
| | | | | | fail existing tests when either ptoron python lib is not on path or is 0.7 or earlier git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1664144 13f79535-47bb-0310-9956-ffa450edef68
* Fix possible double-free discussed in QPID-6368Stephen D. Huston2015-03-031-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1663828 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4710: [AMQP 1.0] Support for transactions in qpid::messaging C++ client.Alan Conway2015-02-2744-448/+1447
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements the "transactional retire and settle immediately" option for transactions as specified in AMQP 1.0 in the qpid::messaging C++ client. NOTE: Transactions over AMQP 1.0 require proton 0.9 or greater. With older versions, attempting a transactions over AMQP 1.0 will raise a link-detached exception "Node not found: tx-transaction" 1. Added descriptor list to Variant with support in Encoder and PnData. Required to support transactions, need to be able to create described lists. Variant changes are source and binary compatible. A Variant now has a Variant::List of descripors which can be numeric or string. Nested descriptors are implemented by putting multiple descriptors in the list. Other minor changes: - Variant refactor: don't delete impl on every assignment. - Add Variant constructors that take a string encoding. (new constructors, not defaulted arguments, so the change is binary and source compatible.) - Growable buffer support for Encoder. - Printing described Variant prints descriptors in form @descriptor value 2. Added transaction support to AMQP 1.0 client code Added messaging/amqp/Transaction.h,cpp: transaction logic - communicate with coordinator, send declare/dischange messages. - add tx state info to transfers and acknowledgements. - Sync session after discharge. - A transactional session automatically acks any message retrieved by fetch/get to bring them into the transaction. This is consistent the 0-10 client. Minor fixes to existing client code: - Fix use of pn_drain API in C++ client to work with C++ and Java brokers. - Make amqp::Exception derive from qpid::Exception 3. Fixes to existing broker code: - Incoming.cpp fix: start async completion before processing message. - Delay accept of dischage message till commit is complete. - newSession - handle failover during session creation. 4. Added tests interop_tests.py: transaction tests that can run against an external broker, see comments. ha_tests.py: Enable transaction tests over AMQP 1.0. Minor test fixes: - brokertest.py don't set default logging if QPID_LOG env vars set. - brokertest.py Pass kwargs to broker() create function. - qpid-receive: capacity should never be larger than message count. - Accept user:pass as well as user/pass in Url. - brokertest.py: Always do a ready() check on all brokers. If proton < 0.9 is used, transaction tests will be skipped or will downgrade to the amqp0-10 protocol with a printed warning. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662743 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Avoid outputting the build type more than onceAndrew Stitcher2015-02-261-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662597 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6415: Core dump in ha_tests and interlink_tests with proton 0.9 (test fix)Alan Conway2015-02-261-0/+1
| | | | | | Minor test fix to avoid core dumps git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662583 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6415: Core dump in ha_tests and interlink_tests with proton 0.9 (missed)Alan Conway2015-02-262-2/+2
| | | | | | | | With proton 0.9 you need call pn_connectin_free before pn_transport_free. Missed 2 cases in the previous commit. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662526 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6415: Core dump in ha_tests and interlink_tests with proton 0.9Alan Conway2015-02-261-1/+1
| | | | | | With proton 0.9 you need call pn_connectin_free before pn_transport_free. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662509 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6414: Skip HA tests if qpid-ha or qpid-config tools are not available.Alan Conway2015-02-253-14/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662275 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6413: Sporadic failure of HA tests causd by maxNegotiateTimeoutAlan Conway2015-02-252-15/+18
| | | | | | | | | | | | | | | | | | | | Increased maxNegotiateTimeout to the default (10 seconds). A smaller value speeds up detection of non-running brokers on remote hosts, but this is not necessary for the tests. Increased some other test timeouts and added some improved error reporting. The occasional long (> 1 second) connection delays are caused by Cyrus SASL authentication. Not clear why this takes so long, but that is a separate issue. Here's a client log excerpt showing the delay. 2015-02-25 08:29:37.461299895 [Network] trace RECV [[127.0.0.1:34247-127.0.0.1:45983]]: Frame[BEbe; channel=0; {ConnectionStartBody: server-properties={qpid.federation_tag:V2:36:str16(77800bff-a176-46c1-917a-32f136dee650)}; mechanisms=str16{V2:9:str16(ANONYMOUS), V2:5:str16(PLAIN)}; locales=str16{V2:5:str16(en_US)}; }] 2015-02-25 08:29:37.463116303 [Security] debug CyrusSasl::start(ANONYMOUS PLAIN) (Note delay > 1 sec here) 2015-02-25 08:29:38.839793753 [Security] debug min_ssf: 0, max_ssf: 256 2015-02-25 08:29:38.839851781 [Security] debug CyrusSasl::start(ANONYMOUS PLAIN): selected ANONYMOUS response: 'anonymous@wallace' 2015-02-25 08:29:38.839963162 [Client] warning Connection [127.0.0.1:34247-127.0.0.1:45983] closed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662247 13f79535-47bb-0310-9956-ffa450edef68
* Fix up/remove pasted comments re Linux per Andrew's review comments in ↵Stephen D. Huston2015-02-241-4/+0
| | | | | | review for QPID-6312 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1662025 13f79535-47bb-0310-9956-ffa450edef68
* Don't take the address of a 0-length vector. Fixes QPID-6409.Stephen D. Huston2015-02-241-5/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1661830 13f79535-47bb-0310-9956-ffa450edef68
* Replace non-Apache licensed CheckSizeTNativeType.cmake with ASF-licensed and ↵Stephen D. Huston2015-02-225-63/+60
| | | | | | more correct for our needs, CheckSizetDistinct.cmake. Resolves QPID-6312. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1661450 13f79535-47bb-0310-9956-ffa450edef68
* Add missing AIX-needed SystemInfo.cpp source; relates to QPID-6312, 0003 ↵Stephen D. Huston2015-02-221-0/+205
| | | | | | attachment git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1661449 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6389: ensure source/target is null when responding to attach requests ↵Gordon Sim2015-02-181-0/+2
| | | | | | in which they are also null git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1660763 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6394 [linearstore] Make linearstore the default store for linux builds ↵Kim van der Riet2015-02-182-2/+2
| | | | | | - Fixed incorrect status messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1660702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6394 Make linearstore the default store for linux buildsKim van der Riet2015-02-172-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1660430 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6347: Remove the now obsolete queue_event_generation option; this is a ↵Justin Ross2015-02-112-29/+0
| | | | | | patch from Irina Boverman git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1659063 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5703: Quiet the code generatorsJustin Ross2015-02-102-3/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1658784 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - refer to OutgoingMessage as 'class' not 'struct' to match its ↵Stephen D. Huston2015-02-101-1/+1
| | | | | | actual definition. Fixes VC12 compile warning. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1658755 13f79535-47bb-0310-9956-ffa450edef68
* NON_JIRA: remove over-cautious assertionGordon Sim2015-02-091-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1658582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6324: refine previous fix such that no explicit reliability setting on ↵Gordon Sim2015-02-091-2/+2
| | | | | | durable subscription results in timeout by default git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1658581 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - fix compile warning 4250 "inheritance by dominance" on Windows ↵Stephen D. Huston2015-02-061-0/+11
| | | | | | Visual Studio 2013. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657976 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5538: patch to work with older version of proton (0.7)Ken Giusti2015-02-062-4/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657964 13f79535-47bb-0310-9956-ffa450edef68
* Fix operator bool() to work with Visual Studio 2013Stephen D. Huston2015-02-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657914 13f79535-47bb-0310-9956-ffa450edef68
* Add cmake module for checking size_t native; should have been with the rest ↵Stephen D. Huston2015-02-051-0/+59
| | | | | | of the patch for QPID-6312 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657476 13f79535-47bb-0310-9956-ffa450edef68
* Apply patches for QPID-6312 to get Qpid building on AIX with XL C++ 13.1Stephen D. Huston2015-02-0422-30/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657338 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6358: detect detached session on fetchGordon Sim2015-02-042-11/+17
| | | | | | The previous solution may on occasion cause an early return in the case where one of many other receivers is closed while in fetch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1657321 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6358: detect detached session on fetchGordon Sim2015-02-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1656928 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5538: Implement AMQP 1.0 connection idle-timeout.Ken Giusti2015-02-029-34/+290
| | | | | | Original patch by Gordon Sim. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1656505 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5842: Allow SSL hostname verification to be disabled on windows client. ↵Clifford Jansen2015-01-294-2/+16
| | | | | | Windows related changes for QPID-5841 and https://reviews.apache.org/r/22890 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1655837 13f79535-47bb-0310-9956-ffa450edef68