qpid-proton.git
6 years agoNO-JIRA: bump python fix version number for next release 0.14.x
Kenneth Giusti [Tue, 30 Aug 2016 12:41:02 +0000 (08:41 -0400)] 
NO-JIRA: bump python fix version number for next release

6 years agoPROTON-1271: Restore snapshot versions after RC
Justin Ross [Tue, 16 Aug 2016 13:06:42 +0000 (06:06 -0700)] 
PROTON-1271: Restore snapshot versions after RC

6 years agoPROTON-1271: Update versions for the RC 0.14.0 0.14.0-rc
Justin Ross [Tue, 16 Aug 2016 13:02:21 +0000 (06:02 -0700)] 
PROTON-1271: Update versions for the RC

6 years agoPROTON-1281: [C++ Binding] Missed #include <ostream>
Andrew Stitcher [Tue, 9 Aug 2016 13:55:38 +0000 (09:55 -0400)] 
PROTON-1281: [C++ Binding] Missed #include <ostream>
- This was causing a difficult to find link error on FreeBSD/clang++

  The code in question was using ostream& << std::string("whatever");
  but only including <string> which only declares the operator<< used.

  However you need <ostream> to define the necessary template instantiation.
  If you don't include <ostream> then it becomes an unknown symbol.

  This only happens when compiling with -O2 or -O3. I think this is
  because these options inline the template instantiation in other
  places so that the symbol is not available in the library anymore.

6 years agoPROTON-1280: Fix Messenger Selectable test
Andrew Stitcher [Tue, 9 Aug 2016 10:37:10 +0000 (06:37 -0400)] 
PROTON-1280: Fix Messenger Selectable test
- I hate this kind of fix!
- We now have a very short time out in select instead of 0 timeout
  (polling behaviour) so that we don't finish if it takes a little time to
  receive an end of stream on one of our sockets.
- It seems that on Linux you reliably get the end of stream on the select()
  call immediately after closing the socket at the other end locally
- But on FreeBSD you usually don't get the EOS immediately, you need to enter
  the kernel first: this was causing the test to fail on FreeBSD.

6 years agoPROTON-1279: [C++ binding] Turn off unreachable warning for clang for code where...
Andrew Stitcher [Fri, 5 Aug 2016 22:14:21 +0000 (18:14 -0400)] 
PROTON-1279: [C++ binding] Turn off unreachable warning for clang for code where it is intentional

6 years agoPROTON-1243: Stop pn_reactor_stop from causing an infinite loop when called from...
Andrew Stitcher [Fri, 29 Jul 2016 03:49:27 +0000 (23:49 -0400)] 
PROTON-1243: Stop pn_reactor_stop from causing an infinite loop when called from within callback

6 years agoPROTON-1272: [C++ binding] Allow example_test to run on Python 2.6
Andrew Stitcher [Wed, 3 Aug 2016 14:36:55 +0000 (10:36 -0400)] 
PROTON-1272: [C++ binding] Allow example_test to run on Python 2.6

6 years agoPROTON-1271: Bump the 0.14.x .so major version to 8
Justin Ross [Tue, 2 Aug 2016 03:28:25 +0000 (20:28 -0700)] 
PROTON-1271: Bump the 0.14.x .so major version to 8

6 years agoPROTON-1271: Restore the snapshot versions
Justin Ross [Tue, 2 Aug 2016 03:21:51 +0000 (20:21 -0700)] 
PROTON-1271: Restore the snapshot versions

6 years agoPROTON-1271: Update versions for 0.14.0 beta 0.14.0-beta
Justin Ross [Tue, 2 Aug 2016 03:14:28 +0000 (20:14 -0700)] 
PROTON-1271: Update versions for 0.14.0 beta

6 years agoPROTON-1241: [C++ binding] Move ownership chain of messaging_handler & messaging_adapter
Andrew Stitcher [Fri, 29 Jul 2016 17:21:26 +0000 (13:21 -0400)] 
PROTON-1241: [C++ binding] Move ownership chain of messaging_handler & messaging_adapter
- messaging_handler now has no data members
- messaging_adapters are now owned by the container_impl
  They are kept in a list and are auto deleted when the container_impl is deleted

6 years agoPROTON-1269: [C++ binding] Add missing handlers
Andrew Stitcher [Thu, 28 Jul 2016 16:44:18 +0000 (12:44 -0400)] 
PROTON-1269: [C++ binding] Add missing handlers
- on_receiver_detach & on_sender_detach
- on_container_stop
- Made underlying pn_link_detach() idempotent.

6 years agoPROTON-1238: [C++ binding] Add fallback operator<< for wrapped proton-c objects
Andrew Stitcher [Wed, 27 Jul 2016 18:59:34 +0000 (14:59 -0400)] 
PROTON-1238: [C++ binding] Add fallback operator<< for wrapped proton-c objects

6 years agoPROTON-1237: Improve connection_engine event logging
Andrew Stitcher [Tue, 26 Jul 2016 19:42:45 +0000 (15:42 -0400)] 
PROTON-1237: Improve connection_engine event logging

6 years agoPROTON-1270: [C++ binding] Add new overloads for open_sender & open_receiver
Andrew Stitcher [Mon, 25 Jul 2016 17:08:29 +0000 (13:08 -0400)] 
PROTON-1270: [C++ binding] Add new overloads for open_sender & open_receiver
- These allow you to create senders and receivers with connection options
  but without specifying empty sender_options or receiver_options.

6 years agoPROTON-1244: [C++ binding] Add conection options to set user and password
Andrew Stitcher [Thu, 21 Jul 2016 06:00:38 +0000 (02:00 -0400)] 
PROTON-1244: [C++ binding] Add conection options to set user and password
- Refactor to connection_options setting to minimize use of connector
- Improve broker example not to die if no queue address is supplied

6 years agoPROTON-1230: Set up SASL environment for C++ tests
Andrew Stitcher [Fri, 22 Jul 2016 23:23:05 +0000 (19:23 -0400)] 
PROTON-1230: Set up SASL environment for C++ tests

6 years agoNO-JIRA: Stop clang complaining about new service_bus example
Andrew Stitcher [Mon, 25 Jul 2016 03:41:51 +0000 (23:41 -0400)] 
NO-JIRA: Stop clang complaining about new service_bus example

This reverts commit b2b74c7ce2aba10aac46c931fdbfc8ea701f49bd.

6 years agoPROTON-1268: Test fixes, that allow direct tox testing to work better.
Andrew Stitcher [Fri, 22 Jul 2016 22:41:38 +0000 (18:41 -0400)] 
PROTON-1268: Test fixes, that allow direct tox testing to work better.

6 years agoPROTON-1267: Service Bus example
Cliff Jansen [Fri, 22 Jul 2016 14:40:35 +0000 (07:40 -0700)] 
PROTON-1267: Service Bus example

6 years agoNO-JIRA: Add python 3.5 to tox; build clean ups.
Andrew Stitcher [Thu, 21 Jul 2016 05:41:22 +0000 (01:41 -0400)] 
NO-JIRA: Add python 3.5 to tox; build clean ups.

6 years agoPROTON-1265: Fix some problems using python 3 with proton-c
Andrew Stitcher [Wed, 20 Jul 2016 06:21:12 +0000 (02:21 -0400)] 
PROTON-1265: Fix some problems using python 3 with proton-c

6 years agoPROTON-1263: c++ add proton::to_string for value and scalar types
Alan Conway [Wed, 20 Jul 2016 15:09:22 +0000 (11:09 -0400)] 
PROTON-1263: c++ add proton::to_string for value and scalar types

Provides ostream<< representation as a string, with std::boolalpha so
boolean prints as true/false.

Also added for proton::url, since conversion to/from string is common.
Cleaned up value op<< to use the scalar op<< for scalar values.

6 years agoPROTON-1165: examples/cpp/mt/epoll_container testing wrong error value
Alan Conway [Tue, 19 Jul 2016 16:30:41 +0000 (12:30 -0400)] 
PROTON-1165: examples/cpp/mt/epoll_container testing wrong error value

The code was incorrectly testing the return value of read()/write() against
EINTR instead of errno.

6 years agoNO-JIRA: go: Add missing dependency to go examples CMakeLists.txt
Alan Conway [Fri, 15 Jul 2016 21:56:19 +0000 (17:56 -0400)] 
NO-JIRA: go: Add missing dependency to go examples CMakeLists.txt

6 years agoNO-JIRA: Suppress warnings from swig compilation.
Alan Conway [Fri, 15 Jul 2016 21:52:30 +0000 (17:52 -0400)] 
NO-JIRA: Suppress warnings from swig compilation.

6 years agoPROTON-1237: c: connection_engine event logging.
Alan Conway [Fri, 15 Jul 2016 21:21:53 +0000 (17:21 -0400)] 
PROTON-1237: c: connection_engine event logging.

Environment variable PN_TRACE_EVENT=1 prints proton C event names using the
transport trace log facility. Mostly useful for low-level debugging while doing
binding work but might be of use to users in some cases.

6 years agoNO-JIRA: c++: add error reporting to mt_brokr.cpp
Alan Conway [Fri, 15 Jul 2016 21:08:42 +0000 (17:08 -0400)] 
NO-JIRA: c++: add error reporting to mt_brokr.cpp

6 years agoPROTON-1258: Make transport events more consistent on client and server
Andrew Stitcher [Wed, 13 Jul 2016 23:23:26 +0000 (19:23 -0400)] 
PROTON-1258: Make transport events more consistent on client and server
- This is almost the same as 4a601011 but with some review fixes from
  aconway@redhat.com

6 years agoRevert "PROTON-1258: Make transport events more consistent on client and server"
Alan Conway [Fri, 15 Jul 2016 18:23:26 +0000 (14:23 -0400)] 
Revert "PROTON-1258: Make transport events more consistent on client and server"

This reverts commit 4a6010110296846e3c77defc0558a45d8792d3b5.

This commit crashes the cpp_mt_example_test in a release build (but not in a
debug or reldbg build which is worth investigating separtely)

The connection engine relies on the events generated by correct use of
pn_transport_t. PROTON-1258 is a reactor bug: the reactor needs to be fixed to
close the transport correctly, before unbinding it, so that it can generate the
proper close events in the proper sequence. The handler should not be involved.

6 years agoPROTON-1258: Make transport events more consistent on client and server
Andrew Stitcher [Wed, 13 Jul 2016 23:23:26 +0000 (19:23 -0400)] 
PROTON-1258: Make transport events more consistent on client and server

6 years agoPROTON-1239: Add accessor to connection for authenticated user.
Andrew Stitcher [Fri, 1 Jul 2016 22:53:46 +0000 (18:53 -0400)] 
PROTON-1239: Add accessor to connection for authenticated user.
- Also had to fix pn_transport_get_user() to act correctly on a server
  where sasl parameters were set but sasl itself was not required.

6 years agoPROTON-1256: Track and check auto-detected protocol layers
Andrew Stitcher [Thu, 14 Jul 2016 14:57:30 +0000 (10:57 -0400)] 
PROTON-1256: Track and check auto-detected protocol layers

6 years agoPROTON-1257: C++ fix cached_map assignment
Cliff Jansen [Thu, 14 Jul 2016 17:13:16 +0000 (10:13 -0700)] 
PROTON-1257: C++ fix cached_map assignment

6 years agoPROTON-1252: Produce useful transport error conditions on sasl errors
Andrew Stitcher [Fri, 8 Jul 2016 21:51:05 +0000 (17:51 -0400)] 
PROTON-1252: Produce useful transport error conditions on sasl errors

6 years agoPROTON-1237: go: go binding uses C pn_connection_engine_t
Alan Conway [Thu, 7 Jul 2016 15:09:31 +0000 (11:09 -0400)] 
PROTON-1237: go: go binding uses C pn_connection_engine_t

- modified Go binding implementation to use pn_connection_engine_t instead of
  directly driving the engine objects.

6 years agoPROTON-1237: go: let go build handle dependencies for go examples
Alan Conway [Thu, 7 Jul 2016 15:06:39 +0000 (11:06 -0400)] 
PROTON-1237: go: let go build handle dependencies for go examples

Manual cmake dependencies were missing changes to the C library or headers and
causing crashes in out-of-date example executables.

Just run `go build` and `go test` every time, they get it right and don't
take any time if there is nothing to do.

6 years agoPROTON-1237: C connection_engine interface and implementation.
Alan Conway [Wed, 6 Jul 2016 22:38:03 +0000 (18:38 -0400)] 
PROTON-1237: C connection_engine interface and implementation.

- ported C++ connection_engine to C pn_connection_engine_t
- replace C++ connection_engine impl with pn_connection_engine_t
- make container/event_loop optional for a connection_engine.
- untangled link_namer from connection engine.

6 years agoNO-JIRA: c++: don't use `cmake -E env`, not available on older cmake
Alan Conway [Thu, 7 Jul 2016 14:45:35 +0000 (10:45 -0400)] 
NO-JIRA: c++: don't use `cmake -E env`, not available on older cmake

6 years agoNO-JIRA: c++: tidy up test CMakefile environment settings
Alan Conway [Wed, 6 Jul 2016 16:12:09 +0000 (12:12 -0400)] 
NO-JIRA: c++: tidy up test CMakefile environment settings

6 years agoNO-JIRA: Make simplecov optional in .travis.yml
Alan Conway [Wed, 6 Jul 2016 03:03:54 +0000 (23:03 -0400)] 
NO-JIRA: Make simplecov optional in .travis.yml

The travis builds were failing to `gem install simplecov`. Made this
step optional so the builds run, but are not using simplecov.

6 years agoPROTON-1249: Safeguard type initialisations. 76/head
Dominic Evans [Fri, 18 Mar 2016 11:20:23 +0000 (11:20 +0000)] 
PROTON-1249: Safeguard type initialisations.

In #readValue() for ArrayType, BinaryType, ListType and MapType
decoding, if the 'count' specified is very large then it is likely to
trigger an OutOfMemoryException. As these can come from an external data
source, during the SASL init for example, there is a potential for a
denial of service. The fix is to throw an IllegalArgumentException if
the count value is larger than the amount of data available in the
received bytes.

6 years agoNO-JIRA: Add value_ref, clean access to pn_data_t* via value interface
Alan Conway [Thu, 23 Jun 2016 22:00:24 +0000 (18:00 -0400)] 
NO-JIRA: Add value_ref, clean access to pn_data_t* via value interface

value_ref allows a class to return a "value&" that provides access to an
internally-held pn_data_t*, and provides a single point of "friendship" for
creating a proton::value by copying from a value_ref.

6 years agoPROTON-1240: Fill in connection::virtual_host() with remote connection host field
Andrew Stitcher [Wed, 29 Jun 2016 16:28:45 +0000 (12:28 -0400)] 
PROTON-1240: Fill in connection::virtual_host() with remote connection host field

6 years agoPROTON-1247: Fix symbol export for transfer, delivery & tracker
Andrew Stitcher [Mon, 27 Jun 2016 20:38:20 +0000 (16:38 -0400)] 
PROTON-1247: Fix symbol export for transfer, delivery & tracker
PROTON-1248: Allow API to query state of delivery and tracker

6 years agoPROTON-1246: Fixes to avoid warning under clang++ 3.8
Andrew Stitcher [Mon, 27 Jun 2016 19:31:01 +0000 (15:31 -0400)] 
PROTON-1246: Fixes to avoid warning under clang++ 3.8

6 years agoPROTON-1200: Add back the experimental flag, as was done for the 0.13.0 release
Justin Ross [Thu, 23 Jun 2016 16:43:34 +0000 (09:43 -0700)] 
PROTON-1200: Add back the experimental flag, as was done for the 0.13.0 release

6 years agoNO-JIRA: bump python bindings version to 0.14.0
Kenneth Giusti [Thu, 16 Jun 2016 13:17:19 +0000 (09:17 -0400)] 
NO-JIRA: bump python bindings version to 0.14.0

6 years agoPROTON-1236: add a link to the transport's reactor as soon as the it is bound
Kenneth Giusti [Sat, 11 Jun 2016 17:42:33 +0000 (13:42 -0400)] 
PROTON-1236: add a link to the transport's reactor as soon as the it is bound

Previously the reactor would be put on the transport's attachment list
when a socket selector was created for the transport.  If the socket
setup fails then no selector is created and the reactor is never added
to the transport.  This would result in a crash as the code depends on
the reactor being present in the transport when transport events are
generated.

6 years agoPROTON-1232: [C++ binding] change container interface:
Andrew Stitcher [Tue, 14 Jun 2016 22:05:13 +0000 (18:05 -0400)] 
PROTON-1232: [C++ binding] change container interface:
- Make all member functions in container class pure virtual (except destructor)
- Add a new standard_container class that has the standard behaviour
  of the variant overloads
- Make all container implementations use standard_container class
- Remove unnecessary includes of container_impl

6 years agoPROTON-1232: [C++ binding] Fix build failures with some earlier gcc versions
Andrew Stitcher [Tue, 14 Jun 2016 20:52:34 +0000 (16:52 -0400)] 
PROTON-1232: [C++ binding] Fix build failures with some earlier gcc versions

6 years agoPROTON-1221: c++ container::schedule() support.
Alan Conway [Tue, 14 Jun 2016 13:36:08 +0000 (09:36 -0400)] 
PROTON-1221: c++ container::schedule() support.

container::schedule() with simple example of sending messages at a fixed interval.
Examples for C++03 and C++11.
Modified inject() to use the same proton::void_function0 as schedule for C++03.

Note: the example chains schedule() calls at a fixed interval. A precise
fixed-frequency sender should take account of the actual time to correct for
variations.

6 years agoPROTON-1231: Fixed failing proton_tests..test_allowed_mechs_external
Alan Conway [Fri, 10 Jun 2016 17:53:54 +0000 (13:53 -0400)] 
PROTON-1231: Fixed failing proton_tests..test_allowed_mechs_external

The test was comparing exact error message text, changed by previous fix to
include the transport error. Modified to check for a reliable substring.

6 years agoPROTON-1233: Add python SSL test for null hostname failure
Cliff Jansen [Mon, 13 Jun 2016 17:46:14 +0000 (10:46 -0700)] 
PROTON-1233: Add python SSL test for null hostname failure

6 years agoPROTON-1232: [C++ binding] Improve default_container construction
Andrew Stitcher [Fri, 27 May 2016 21:10:06 +0000 (17:10 -0400)] 
PROTON-1232: [C++ binding] Improve default_container construction

6 years agoPROTON-1235: set hostname even if port not available
Kenneth Giusti [Fri, 10 Jun 2016 16:37:53 +0000 (12:37 -0400)] 
PROTON-1235: set hostname even if port not available

6 years agoPROTON-1233: Windows: provide same verification error as Posix for empty peer hostnam...
Cliff Jansen [Fri, 10 Jun 2016 02:22:46 +0000 (19:22 -0700)] 
PROTON-1233: Windows: provide same verification error as Posix for empty peer hostname and PN_SSL_VERIFY_PEER_NAME

6 years agoPROTON-1229: enhance virtual_host doc and related ssl examples/CI
Cliff Jansen [Thu, 9 Jun 2016 19:16:14 +0000 (12:16 -0700)] 
PROTON-1229: enhance virtual_host doc and related ssl examples/CI

6 years agoPROTON-1231: python BlockingConnection hides disconnect error info
Alan Conway [Thu, 9 Jun 2016 19:47:04 +0000 (15:47 -0400)] 
PROTON-1231: python BlockingConnection hides disconnect error info

Added the transport.condition error to the exception thrown on disconnect.

6 years agoPROTON-1228: Windows SChannel: set a default peer hostname (same as OpenSSL)
Cliff Jansen [Thu, 9 Jun 2016 06:52:03 +0000 (23:52 -0700)] 
PROTON-1228: Windows SChannel: set a default peer hostname (same as OpenSSL)

6 years agoPROTON-1226: restore flow_control CI test
Cliff Jansen [Mon, 6 Jun 2016 15:24:56 +0000 (08:24 -0700)] 
PROTON-1226: restore flow_control CI test

6 years agoPROTON-1226: set handler directly on inbound connection configuration
Cliff Jansen [Mon, 6 Jun 2016 14:57:25 +0000 (07:57 -0700)] 
PROTON-1226: set handler directly on inbound connection configuration

6 years agoPROTON-1200: Various C++ doc improvements
Justin Ross [Sun, 5 Jun 2016 21:48:31 +0000 (14:48 -0700)] 
PROTON-1200: Various C++ doc improvements

 - Update the topic pages for clarity, style, and correct links
 - Fix the example includes in the tutorial
 - Add missing API doc for coerce(scalar)
 - Spruce up the README a bit
 - Remove an unused include from helloworld.cpp
 - Mark all drain-related API experimental
 - Hide all the amqp typedefs in anticipation of removing them
 - Don't show PN_CPP_OVERRIDE in the generated API docs for
   default_container

6 years agoPROTON-1194: use consistent argument handling, clarify sender flow logic
Cliff Jansen [Fri, 3 Jun 2016 19:52:25 +0000 (12:52 -0700)] 
PROTON-1194: use consistent argument handling, clarify sender flow logic

6 years agoPROTON-1220: enable C++ build option for C examples
Kenneth Giusti [Fri, 3 Jun 2016 14:39:36 +0000 (10:39 -0400)] 
PROTON-1220: enable C++ build option for C examples

6 years agoPROTON-1215: [C++ binding] Move data to internal namespace
Andrew Stitcher [Fri, 27 May 2016 20:10:42 +0000 (16:10 -0400)] 
PROTON-1215: [C++ binding] Move data to internal namespace
-- Also tidy up use of "using namespace"

6 years agoPROTON-1225: c++: taking address of element 0 of an empty string or vector
Alan Conway [Thu, 2 Jun 2016 18:56:57 +0000 (14:56 -0400)] 
PROTON-1225: c++: taking address of element 0 of an empty string or vector

Added x.empty() checks and assertions to all uses of the &x[0] idiom.

6 years agoPROTON-1220: add compiler flags for C examples
Kenneth Giusti [Wed, 1 Jun 2016 14:56:41 +0000 (10:56 -0400)] 
PROTON-1220: add compiler flags for C examples

6 years agoNO-JIRA: c++: Fix coverity "ostream format" issue in examples.
Alan Conway [Thu, 2 Jun 2016 13:59:54 +0000 (09:59 -0400)] 
NO-JIRA: c++: Fix coverity "ostream format" issue in examples.

Removed use of std::boolalpha. Apart from the coverity warning about not resetting
ostream format, it was not necessary and distracted from the purpose of the example.

6 years agoPROTON-1223: defer socketclose as long as possible, shorten heartbeat test on Windows...
Cliff Jansen [Thu, 2 Jun 2016 07:49:39 +0000 (00:49 -0700)] 
PROTON-1223: defer socketclose as long as possible, shorten heartbeat test on Windows, mimic POSIX connection failure behavior

6 years agoPROTON-1223: revert incorrect error status test from f646079
Cliff Jansen [Thu, 2 Jun 2016 07:02:54 +0000 (00:02 -0700)] 
PROTON-1223: revert incorrect error status test from f646079

6 years agoPROTON-1222: Small fixes for bugs spotted by Coverity
Andrew Stitcher [Thu, 2 Jun 2016 06:47:55 +0000 (02:47 -0400)] 
PROTON-1222: Small fixes for bugs spotted by Coverity

6 years agoPROTON-1219: fix windows errors and signed/unsigned issues
Kenneth Giusti [Wed, 1 Jun 2016 14:22:35 +0000 (10:22 -0400)] 
PROTON-1219: fix windows errors and signed/unsigned issues

6 years agoPROTON-1216: Fix windows warnings from is_convertible<>
Alan Conway [Wed, 1 Jun 2016 18:40:31 +0000 (14:40 -0400)] 
PROTON-1216: Fix windows warnings from is_convertible<>

Locally suppress Windows warnings about legal but risky argument
conversions (float/int, signed/unsigned etc.) only in template is_convertible<>.

The compile-time warnings are a side effect of template instantiation by
coerce<>, not an indication of risky use. coerce<> is a run-time conversion and
throws run-time errors for illegal conversions. In future we may add something
like safe_convert<> that throws run-time errors for risky conversions as well.

6 years agoPROTON-1216: c++: cleanup to previous commit.
Alan Conway [Tue, 31 May 2016 21:31:52 +0000 (17:31 -0400)] 
PROTON-1216: c++: cleanup to previous commit.

Removed file left behind in error, removed non standard cxxabi.h.

6 years agoNO-JIRA: fix memory leaks in reactor examples.
Kenneth Giusti [Tue, 31 May 2016 18:56:22 +0000 (14:56 -0400)] 
NO-JIRA: fix memory leaks in reactor examples.

6 years agoNO-JIRA: cleanup vhost handling issues found by Coverity
Kenneth Giusti [Tue, 31 May 2016 17:35:23 +0000 (13:35 -0400)] 
NO-JIRA: cleanup vhost handling issues found by Coverity

6 years agoPROTON-1217: Sporadic memory leak in C++ container_test
Alan Conway [Tue, 31 May 2016 18:22:10 +0000 (14:22 -0400)] 
PROTON-1217: Sporadic memory leak in C++ container_test

Fixed missing call to listen_handler::on_closed in the event of an exception.

6 years agoPROTON-1216: c++: proton::coerce should convert binary to string.
Alan Conway [Tue, 31 May 2016 17:11:30 +0000 (13:11 -0400)] 
PROTON-1216: c++: proton::coerce should convert binary to string.

Make scalar and value coerce<> consistent with C++ implicit conversions and each other.

- No source api change (still have deprecated functions)
- Better test coverage, consistent tests for value and scalar where applicable.
- Fixed unknown integer type conversions for scalar.
- Fixed examples using deprecated APIs (deprecated APIs are still in place)
- Consistent printing of scalar values, repect the std::ios::boolalpha flag for printing bool.

6 years agoPROTON-1214: More complex implementation of cached_map with correct ABI
Andrew Stitcher [Tue, 24 May 2016 15:00:29 +0000 (11:00 -0400)] 
PROTON-1214: More complex implementation of cached_map with correct ABI

6 years agoPROTON-1214: [C++ binding] Very simple implementation of cached_map to get correct API
Andrew Stitcher [Fri, 20 May 2016 22:27:48 +0000 (18:27 -0400)] 
PROTON-1214: [C++ binding] Very simple implementation of cached_map to get correct API

6 years agoPROTON-1213: Fix quick_perf_xx targets.
Cliff Jansen [Wed, 25 May 2016 01:04:27 +0000 (18:04 -0700)] 
PROTON-1213: Fix quick_perf_xx targets.

6 years agoPROTON-1211: C++ binding - incorrect replacing of message correlation_id
Cliff Jansen [Wed, 25 May 2016 00:10:32 +0000 (17:10 -0700)] 
PROTON-1211: C++ binding - incorrect replacing of message correlation_id

6 years agoPROTON-1212: [C++ binding] Fix bool conversions of pn_unique_ptr
Andrew Stitcher [Tue, 24 May 2016 14:56:25 +0000 (10:56 -0400)] 
PROTON-1212: [C++ binding] Fix bool conversions of pn_unique_ptr

6 years agoPROTON-1199: Remove symbolic links used by Go binding.
Alan Conway [Thu, 19 May 2016 21:49:18 +0000 (17:49 -0400)] 
PROTON-1199: Remove symbolic links used by Go binding.

6 years agoPROTON-1208: Fix make install issues
Andrew Stitcher [Thu, 19 May 2016 18:56:20 +0000 (14:56 -0400)] 
PROTON-1208: Fix make install issues
- Blocking issue that didn't install sufficient C++ binding header files
- Don't install example files only used for building as part of full source

6 years agoPROTON-1200: c++ multi-threaded and IO integration documentation.
Alan Conway [Wed, 18 May 2016 20:59:03 +0000 (16:59 -0400)] 
PROTON-1200: c++ multi-threaded and IO integration documentation.

- updated documentation
- removed/privatized unused functions in thread_safe.hpp

6 years agoPROTON-1203: Small header file fixes
Andrew Stitcher [Wed, 18 May 2016 19:59:00 +0000 (15:59 -0400)] 
PROTON-1203: Small header file fixes

6 years agoPROTON-1205: c++ change default arguments to multiple overloads
Alan Conway [Wed, 18 May 2016 18:34:24 +0000 (14:34 -0400)] 
PROTON-1205: c++ change default arguments to multiple overloads

6 years agoMerge branch 'inclusion_fixes'
Andrew Stitcher [Tue, 17 May 2016 20:53:00 +0000 (16:53 -0400)] 
Merge branch 'inclusion_fixes'

6 years agoPROTON-1203: Change header files include usage:
Andrew Stitcher [Tue, 17 May 2016 19:47:20 +0000 (15:47 -0400)] 
PROTON-1203: Change header files include usage:
- In exported headers always use #include "" and relative paths to other proton-cpp include files
- In exported headers always use #include <> for proton-c includes
- Only use #include "" for proton cpp files from within cpp implementation
- Always use #include <> for proton-c header files within cpp implementation
- Make all examples use #include <> for proton cpp includes
- Move the exported header files config.hpp and export.hpp to internal
- Don't include config.hpp directly in examples as it is an internal header file
- Reinstate a more compatible version of fake_cpp11.hpp

6 years agoPROTON-1202: python setup.py - only extract the files necessary for
Kenneth Giusti [Tue, 17 May 2016 17:36:23 +0000 (13:36 -0400)] 
PROTON-1202: python setup.py - only extract the files necessary for
building the C library.

6 years agoPROTON-1061: update expected textual output for the __repr__ defs for different types
Gordon Sim [Tue, 17 May 2016 17:44:45 +0000 (18:44 +0100)] 
PROTON-1061: update expected textual output for the __repr__ defs for different types

6 years agoNO-JIRA: if get error with no description, use the name for clarity
Gordon Sim [Tue, 17 May 2016 17:44:03 +0000 (18:44 +0100)] 
NO-JIRA: if get error with no description, use the name for clarity

6 years agoPROTON-1134: Update master versions after 0.13.0 beta
Justin Ross [Tue, 17 May 2016 05:01:03 +0000 (22:01 -0700)] 
PROTON-1134: Update master versions after 0.13.0 beta

6 years agoPROTON-1200: Fix a broken include
Justin Ross [Tue, 17 May 2016 04:22:09 +0000 (21:22 -0700)] 
PROTON-1200: Fix a broken include

6 years agoPROTON-1200: Move data.hpp into codec; fix a stray include
Justin Ross [Tue, 17 May 2016 04:15:06 +0000 (21:15 -0700)] 
PROTON-1200: Move data.hpp into codec; fix a stray include

6 years agoPROTON-1200: Rename handler to messaging_handler, to avoid the suggestion that it...
Justin Ross [Tue, 17 May 2016 03:45:08 +0000 (20:45 -0700)] 
PROTON-1200: Rename handler to messaging_handler, to avoid the suggestion that it is a base class or interface for the other types of handlers, and for consistency with other bindings

6 years agoPROTON-1200: Improve C++ binding documentation and header formatting
Justin Ross [Tue, 17 May 2016 02:44:31 +0000 (19:44 -0700)] 
PROTON-1200: Improve C++ binding documentation and header formatting

 - Add lots of documentation
 - Eliminate doxygen warnings
 - Update pages for correct links and revise the content
 - Move codec::* and internal::* classes into corresponding include
   directories
 - Move AMQP type defines from amqp:: to codec::
 - Clearly mark experimental parts of the API as such in the API docs
 - Hide some API elements that aren't ready for broader use.
 - Make the typed ranges and iterators undocumented (but present)
 - Shorten some of the class summaries so that they look nice in the
   index
 - Style stuff
   - Use one pattern throughout for header guards
   - Make imports uniform
   - Use the Oxford comma, because it's better that way