qpid-proton.git
18 months agoPROTON-2300: update versions for 0.34.0-rc1 0.34.0 0.34.0-rc1
Robbie Gemmell [Tue, 6 Apr 2021 11:11:17 +0000 (12:11 +0100)] 
PROTON-2300: update versions for 0.34.0-rc1

18 months agoPROTON-2354: Fix to the new destructors that works with C++03
Andrew Stitcher [Mon, 5 Apr 2021 21:29:16 +0000 (17:29 -0400)] 
PROTON-2354: Fix to the new destructors that works with C++03

We do still support C++03 and the previous fix had the wrong exception
specification for pre C++11 destructors:

The base exception (std::runtime_error) is specified to not throw any
exeptions so we need to specify the new destructors the same way.
C++11 defaults to non throwing destructors so omitting the exception
specification works there. However earlier C++ doesn't default like this
and so we need to do this explicitly for C++03. The explicit specification
works fine for C++11 as it doesn't actually change anything there.

18 months agoPROTON-2300: update .so versions after review
Robbie Gemmell [Mon, 5 Apr 2021 11:26:00 +0000 (12:26 +0100)] 
PROTON-2300: update .so versions after review

18 months agoPROTON-2355: Definitively fix CMake 2.8.12 incompatibility w/ generexp in add_library...
Jiri Daněk [Fri, 2 Apr 2021 23:57:24 +0000 (01:57 +0200)] 
PROTON-2355: Definitively fix CMake 2.8.12 incompatibility w/ generexp in add_library (#306)

18 months agoPROTON-2355: Fix CMake 2.8.12 incompatibility in the original fix (#305)
Jiri Daněk [Fri, 2 Apr 2021 20:31:59 +0000 (22:31 +0200)] 
PROTON-2355: Fix CMake 2.8.12 incompatibility in the original fix (#305)

18 months agoPROTON-2344: fix Python BlockingConnection resource leaks, memory and socket fds
Cliff Jansen [Fri, 2 Apr 2021 18:46:39 +0000 (11:46 -0700)] 
PROTON-2344: fix Python BlockingConnection resource leaks, memory and socket fds

18 months agoPROTON-2354: Better fix for some 'macOS' test failures
Andrew Stitcher [Fri, 2 Apr 2021 03:07:26 +0000 (23:07 -0400)] 
PROTON-2354: Better fix for some 'macOS' test failures

Actually these failures aren't specific to macOS rather to clang's
libc++ runtime library which is pickier about RTTI information
being exported for excpetion catching and dynamic_cast<>.

18 months agoPROTON-2355: Fix build with -DPROACTOR=none (#302)
Jiri Daněk [Thu, 1 Apr 2021 17:24:33 +0000 (19:24 +0200)] 
PROTON-2355: Fix build with -DPROACTOR=none (#302)

epoll proactor unconditionally uses pthread.h which will result in the
following build failure:

[  3%] Building C object c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/epoll.c.o
In file included from /nvme/rc-buildroot-test/scripts/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll.c:60:
/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll-internal.h:37:10: fatal error: pthread.h: No such file or directory
   37 | #include <pthread.h>
      |          ^~~~~~~~~~~

To fix this failure, the user could use -DPROACTOR=none but it also
fails on:

CMake Error at c/CMakeLists.txt:481 (add_library):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:qpid-proton-proactor-objects>

  Objects of target "qpid-proton-proactor-objects" referenced but no such
  target exists.

Co-authored-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
18 months agoPROTON-2351: allow Travis based OSX runs not to fail the overall job for now, to...
Robbie Gemmell [Thu, 1 Apr 2021 16:46:12 +0000 (17:46 +0100)] 
PROTON-2351: allow Travis based OSX runs not to fail the overall job for now, to help avoid masking issues on other OS runs. GHA MacOS builds will still fail.

18 months agoPROTON-2248: [c] Some code doc fixes
Andrew Stitcher [Fri, 19 Mar 2021 20:10:10 +0000 (16:10 -0400)] 
PROTON-2248: [c] Some code doc fixes

18 months agoPROTON-2354: Fix some macOSX test failures
Andrew Stitcher [Fri, 26 Mar 2021 21:24:31 +0000 (17:24 -0400)] 
PROTON-2354: Fix some macOSX test failures

Also tidy up macOSX options a little.

18 months agoPROTON-2332: [C++] Allow access to link properties (#293)
Pete Fawcett [Wed, 24 Mar 2021 09:59:52 +0000 (09:59 +0000)] 
PROTON-2332: [C++] Allow access to link properties (#293)

Enable setting of link properties via sender and receiver options
Enable querying of link properties set by remote end

18 months agoPROTON-2346: c/src/proactor/epoll-internal.h: fix build on musl (#300)
Jiri Daněk [Tue, 23 Mar 2021 08:00:46 +0000 (09:00 +0100)] 
PROTON-2346: c/src/proactor/epoll-internal.h: fix build on musl (#300)

* PROTON-2346: c/src/proactor/epoll-internal.h: fix build on musl

Build with epoll proactor on musl is broken since at least version 0.23.0 and
https://github.com/apache/qpid-proton/commit/37136940e3077f25ce58c94775f48c66f666f4a8
because musl does not define PTHREAD_MUTEX_ADAPTIVE_NP resulting in the
following build failure:

In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll.c:60:
/home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll-internal.h: In function 'pmutex_init':
/home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll-internal.h:319:36: error: 'PTHREAD_MUTEX_ADAPTIVE_NP' undeclared (first use in this function); did you mean 'PTHREAD_MUTEX_STALLED'?
  319 |   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    PTHREAD_MUTEX_STALLED

Fixes:
 - http://autobuild.buildroot.org/results/6a901b9ff68b7f52cabf8273d1017025fbd93b0d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* Update c/src/proactor/epoll-internal.h with explanatory comment

Co-authored-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
18 months agoPROTON-2342 Apply patch for non-constant SIGSTKSZ from Fedora to Catch
Jiri Danek [Sat, 20 Mar 2021 15:48:13 +0000 (16:48 +0100)] 
PROTON-2342 Apply patch for non-constant SIGSTKSZ from Fedora to Catch

https://src.fedoraproject.org/rpms/catch1/c/059104ba87494c0b5ebe16844ec190f253e51cac?branch=rawhide

18 months agoPROTON-2342 Upgrade Catch to v1.12.2
Jiri Danek [Sat, 20 Mar 2021 15:45:49 +0000 (16:45 +0100)] 
PROTON-2342 Upgrade Catch to v1.12.2

https://github.com/catchorg/Catch2/releases/tag/v1.12.2

18 months agoPROTON-2343: Tidy up build flag selection
Andrew Stitcher [Fri, 16 Oct 2020 20:28:46 +0000 (16:28 -0400)] 
PROTON-2343: Tidy up build flag selection

It should now be much clearer what build flags apply to which builds

18 months agoPROTON-2340: Another small fix to raw_echo for Visual Studio C compilers
Andrew Stitcher [Thu, 11 Mar 2021 03:32:18 +0000 (22:32 -0500)] 
PROTON-2340: Another small fix to raw_echo for Visual Studio C compilers

This avoids C99 VLAs and the gnu/clang extension that imitates them.

18 months agoPROTON-2340: Small fixes to raw_echo to avoid warnings
Andrew Stitcher [Thu, 11 Mar 2021 02:03:28 +0000 (21:03 -0500)] 
PROTON-2340: Small fixes to raw_echo to avoid warnings

Also avoid requiring C99.

19 months agoPROTON-2340: Make raw connection echo example multithreaded
Andrew Stitcher [Fri, 5 Mar 2021 03:58:38 +0000 (22:58 -0500)] 
PROTON-2340: Make raw connection echo example multithreaded

WIPWIPWIP: This stops the example exiting cleanly - needs investigation
This helps to expose the TSAN problems

19 months agoPROTON-2340: Fix some TSAN issues in proactor raw connection
Andrew Stitcher [Fri, 5 Mar 2021 03:47:06 +0000 (22:47 -0500)] 
PROTON-2340: Fix some TSAN issues in proactor raw connection

19 months agoPROTON-2338: Removed some unused code that was bothering clang
Andrew Stitcher [Tue, 2 Mar 2021 21:56:26 +0000 (16:56 -0500)] 
PROTON-2338: Removed some unused code that was bothering clang

Also improved the code documentation a little.

19 months agoPROTON-2339: Proactor raw connection: Introduce DRAIN_BUFFERS event
Andrew Stitcher [Wed, 24 Feb 2021 18:24:39 +0000 (13:24 -0500)] 
PROTON-2339: Proactor raw connection: Introduce DRAIN_BUFFERS event

This will supercede the use of READ/WRITTEN events to tell the
application to retrieve its buffers before DISCONNECT.

This more specific event should be clearer in purpose.

For backwards compatibility with existing code, if the application
doesn't drain the buffers in response to the drain event, we will
send the read/written events (as applicable) as well. This behaviour
should be removed when the existing major application (dispatch) is
fixed to use this new event.

19 months agoPROTON-2338:: Added some testing for raw connection half close
Andrew Stitcher [Tue, 23 Feb 2021 22:14:11 +0000 (17:14 -0500)] 
PROTON-2338:: Added some testing for raw connection half close

Unit test half close
Half close write side in raw_connect when writing final message

19 months agoPROTON-2338: Implement proactor raw connection half close operations
Andrew Stitcher [Fri, 12 Feb 2021 02:14:52 +0000 (21:14 -0500)] 
PROTON-2338: Implement proactor raw connection half close operations

The raw connection state machine has been rejigged to encompass half closed
states. The previous separate read/write state booleans have been
combined into a single state. This should allow for clearer connection
state tracking.

19 months agoPROTON-2338: [proactor] Add prototypes for new raw connection half close operations
Andrew Stitcher [Tue, 2 Feb 2021 01:39:06 +0000 (20:39 -0500)] 
PROTON-2338: [proactor] Add prototypes for new raw connection half close operations

- Add stubs for libuv and win_iocp proactor implementations

19 months agoPROTON-2334: fix libuv proactor PN_PROACTOR_INACTIVE event generation
Cliff Jansen [Mon, 22 Feb 2021 17:41:04 +0000 (09:41 -0800)] 
PROTON-2334: fix libuv proactor PN_PROACTOR_INACTIVE event generation

19 months agoPROTON-2322 Fix various flake8 warnings (manual changes) (#289)
Jiri Daněk [Sat, 20 Feb 2021 13:58:51 +0000 (14:58 +0100)] 
PROTON-2322 Fix various flake8 warnings (manual changes) (#289)

* PROTON-2320 Configure and enable flake8 in tox

19 months agoPROTON-2337: epoll proactor - missing lock on variable increment, found by TSAN
Cliff Jansen [Fri, 19 Feb 2021 06:19:58 +0000 (22:19 -0800)] 
PROTON-2337: epoll proactor - missing lock on variable increment, found by TSAN

19 months agoPROTON-2217 Prefer first working Python on PATH, prefer Py3 over Py2 (#294)
Jiri Daněk [Thu, 18 Feb 2021 15:33:48 +0000 (16:33 +0100)] 
PROTON-2217 Prefer first working Python on PATH, prefer Py3 over Py2 (#294)

19 months agoNO-JIRA Upgrade to Clang 11 in .travis.yml (#298)
Jiri Daněk [Thu, 18 Feb 2021 15:32:55 +0000 (16:32 +0100)] 
NO-JIRA Upgrade to Clang 11 in .travis.yml (#298)

19 months agoPROTON-2334: c-fdlimit-tests fix for libuv immediate close connection drain behaviour...
Cliff Jansen [Fri, 12 Feb 2021 18:02:43 +0000 (10:02 -0800)] 
PROTON-2334: c-fdlimit-tests fix for libuv immediate close connection drain behaviour for EMFILE accept() error

19 months agoPROTON-2334: threaderciser test - simultaneous connect and pn_proactor_disconnect()
Cliff Jansen [Fri, 12 Feb 2021 16:33:53 +0000 (08:33 -0800)] 
PROTON-2334: threaderciser test - simultaneous connect and pn_proactor_disconnect()

19 months agoNO-JIRA Add two forgotten test files to the project (#296)
Jiri Daněk [Wed, 10 Feb 2021 18:48:28 +0000 (19:48 +0100)] 
NO-JIRA Add two forgotten test files to the project (#296)

20 months agoPROTON-2329: [C++] ssl example - added bad_option handler.
Thomas Kettenbach [Fri, 22 Jan 2021 15:00:32 +0000 (15:00 +0000)] 
PROTON-2329: [C++] ssl example - added bad_option handler.

20 months agoPROTON-2329: [C++] ssl example - fix option parsing.
Thomas Kettenbach [Fri, 22 Jan 2021 14:46:41 +0000 (14:46 +0000)] 
PROTON-2329: [C++] ssl example - fix option parsing.

20 months agoPROTON-2307: Allow setting of connection properties via connection_options
Pete Fawcett [Wed, 2 Dec 2020 18:56:45 +0000 (18:56 +0000)] 
PROTON-2307: Allow setting of connection properties via connection_options

Allow access to properties on incoming connections

closes #278

20 months agoFix auto_accept doc typo
Jacob Middag [Mon, 25 Jan 2021 12:11:49 +0000 (13:11 +0100)] 
Fix auto_accept doc typo

20 months agoPROTON-2328: epoll proactor, use local variable not zeroed task member to track warm...
Cliff Jansen [Mon, 25 Jan 2021 17:06:29 +0000 (09:06 -0800)] 
PROTON-2328: epoll proactor, use local variable not zeroed task member to track warm pairings

20 months agoPROTON-2326: epoll proactor refactor - make all tasks wakeable in generic manner...
Cliff Jansen [Sun, 24 Jan 2021 19:18:30 +0000 (11:18 -0800)] 
PROTON-2326: epoll proactor refactor - make all tasks wakeable in generic manner.  This closes #290

20 months agoPROTON-2326: epoll proactor refactor - provide proactor as direct argument to notify_...
Cliff Jansen [Thu, 21 Jan 2021 06:33:34 +0000 (22:33 -0800)] 
PROTON-2326: epoll proactor refactor - provide proactor as direct argument to notify_poller(), not indirect via task

20 months agoPROTON-2326: epoll proactor refactor - "schedule" instead of "wake", "task" instead...
Cliff Jansen [Sun, 24 Jan 2021 18:54:21 +0000 (10:54 -0800)] 
PROTON-2326: epoll proactor refactor - "schedule" instead of "wake", "task" instead of "context"

20 months agoPROTON-2327: Fix example build breakage on cmake 2.8.12
Andrew Stitcher [Fri, 22 Jan 2021 15:33:00 +0000 (10:33 -0500)] 
PROTON-2327: Fix example build breakage on cmake 2.8.12

20 months agoNO-JIRA: update year in NOTICE file
Robbie Gemmell [Mon, 18 Jan 2021 16:15:05 +0000 (16:15 +0000)] 
NO-JIRA: update year in NOTICE file

20 months agoPROTON-2319 Remove Python 2.3 and Jython 2.5 compatibility code (#288)
Jiri Daněk [Fri, 15 Jan 2021 14:36:15 +0000 (15:36 +0100)] 
PROTON-2319 Remove Python 2.3 and Jython 2.5 compatibility code (#288)

20 months agoPROTON-2320 Apply second round of autopep8 (--aggressive * 3) (#287)
Jiri Daněk [Fri, 15 Jan 2021 13:52:45 +0000 (14:52 +0100)] 
PROTON-2320 Apply second round of autopep8 (--aggressive * 3) (#287)

20 months agoPROTON-2320 Apply first round of autopep8 (whitespace changes, mostly) (#285)
Jiri Daněk [Thu, 14 Jan 2021 17:36:12 +0000 (18:36 +0100)] 
PROTON-2320 Apply first round of autopep8 (whitespace changes, mostly) (#285)

20 months agoPROTON-2315: [Python] Support multiple connection URLs in the BlockingConnection...
mprahl [Mon, 27 Apr 2020 18:24:21 +0000 (14:24 -0400)] 
PROTON-2315: [Python] Support multiple connection URLs in the BlockingConnection class
- [Originated by mprahl. modified by astitcher]
- closes #243

20 months agoPROTON-2314: [Python] reconnect/failover makeover
Andrew Stitcher [Fri, 18 Dec 2020 21:00:59 +0000 (16:00 -0500)] 
PROTON-2314: [Python] reconnect/failover makeover
- Trivial typos
- Fixed failover to interact more sensibly with reconnect delays
- Added useful keyword parameters to Backoff class
- Allow specification of backoff delay by using an iterator/generator
- Improved connection logging a bit
  - Can now see connection messages without all events
- Remove unused (and now obsolete) address keyword to Container.connect
- Added some failover tests
- Fixed tests to allow logging INFO messages

20 months agoPROTON-2319: A (hopefully) final piece of python 2.6 detritus
Andrew Stitcher [Wed, 13 Jan 2021 20:19:08 +0000 (15:19 -0500)] 
PROTON-2319: A (hopefully) final piece of python 2.6 detritus

 Please enter the commit message for your changes. Lines startin

20 months agoPROTON-2319: Some more leftovers from python 2.6
Andrew Stitcher [Wed, 13 Jan 2021 18:35:55 +0000 (13:35 -0500)] 
PROTON-2319: Some more leftovers from python 2.6

20 months agoPROTON-2319: [Python] Remove code that only exists to support Python 2.6 284/head
Andrew Stitcher [Fri, 8 Jan 2021 18:27:36 +0000 (13:27 -0500)] 
PROTON-2319: [Python] Remove code that only exists to support Python 2.6
- Also modified tox setup to avoid having to modify the file at the cost
  of requiring an environment variable at test time.

20 months agoPROTON-2104 add test for IPv6 in proton::url (#280)
Jiri Daněk [Fri, 8 Jan 2021 06:17:35 +0000 (07:17 +0100)] 
PROTON-2104 add test for IPv6 in proton::url (#280)

20 months agoPROTON-2281 Fix flakiness in ruby-message-spec test (#282)
Jiri Daněk [Fri, 8 Jan 2021 06:14:18 +0000 (07:14 +0100)] 
PROTON-2281 Fix flakiness in ruby-message-spec test (#282)

20 months agoPROTON-2318 Pin simplecov in .travis.yml to resolve gem conflict (#283)
Jiri Daněk [Fri, 8 Jan 2021 06:12:56 +0000 (07:12 +0100)] 
PROTON-2318 Pin simplecov in .travis.yml to resolve gem conflict (#283)

20 months agoPROTON-2311: Fix raw connection test issue on macOSX 10.14
Andrew Stitcher [Fri, 8 Jan 2021 01:29:08 +0000 (20:29 -0500)] 
PROTON-2311: Fix raw connection test issue on macOSX 10.14
- Just avoid using socketpairs outside Linux completely for the test

21 months agoNO-JIRA: github actions CI for macOS disabled threaderciser test due to PROTON-2231.
Roddie Kieley [Fri, 18 Dec 2020 15:32:57 +0000 (12:02 -0330)] 
NO-JIRA: github actions CI for macOS disabled threaderciser test due to PROTON-2231.

21 months agoNO-JIRA: Travis CI macOS lower to Xcode 10.3 on 10.14 and upper to 10.15.
Roddie Kieley [Fri, 18 Dec 2020 15:21:06 +0000 (11:51 -0330)] 
NO-JIRA: Travis CI macOS lower to Xcode 10.3 on 10.14 and upper to 10.15.

21 months agoPROTON-1516: add tests for empty last frame in a streamed message
Cliff Jansen [Mon, 14 Dec 2020 17:59:43 +0000 (09:59 -0800)] 
PROTON-1516: add tests for empty last frame in a streamed message

21 months agoPROTON-1914: early settlement of inbound streamed message. This closes #279
Cliff Jansen [Fri, 11 Dec 2020 18:40:33 +0000 (10:40 -0800)] 
PROTON-1914: early settlement of inbound streamed message.  This closes #279

21 months agoPROTON-1914: early settlement of inbound streamed message. This closes #279
Cliff Jansen [Fri, 11 Dec 2020 18:29:30 +0000 (10:29 -0800)] 
PROTON-1914: early settlement of inbound streamed message.  This closes #279

21 months agoPROTON-2309: [cpp] Improve reconnect logic and examples
Andrew Stitcher [Fri, 11 Dec 2020 06:43:53 +0000 (01:43 -0500)] 
PROTON-2309: [cpp] Improve reconnect logic and examples
- Fix bug in C++ binding that stops it from responding to a forced close from
  its peer with a close frame before closing the socket if reconnect is turned on.
- Added a reconnect option to the simple_send example
- Made reconnect work in simple_connect example

21 months agoPROTON-2237: Minor fix: removed import of skipif in tests/proton_tests/message.py...
Kim van der Riet [Thu, 10 Dec 2020 19:39:39 +0000 (14:39 -0500)] 
PROTON-2237: Minor fix: removed import of skipif in tests/proton_tests/message.py, not used.

21 months agoMerge branch 'python-check-property-keys'
Kim van der Riet [Mon, 7 Dec 2020 18:14:33 +0000 (13:14 -0500)] 
Merge branch 'python-check-property-keys'
Closes PR #256 / PROTON-2237

21 months agoPROTON-2237: Correct checking of Proton message property keys python-check-property-keys 256/head
Kim van der Riet [Tue, 2 Jun 2020 17:16:49 +0000 (13:16 -0400)] 
PROTON-2237: Correct checking of Proton message property keys

PROTON-2237: Alternative approach which converts all child classes of string/unicode to the base class, including proton symbol and char types.

PROTON-2237: Changed logic of key check so that subclasses of string *except* proton.symbol and proton.char will be encoded as strings

PROTON-2237: Added unit tests to check illegal key types are detected and handled, also subclasses of string type keys are converted to type string

PROTON-2237: Finalized handling property keys, added tests for these cases.

PROTON-2237: Fix for dictionary keys changed during iteration error, deeper test for key conversions

PROTON-2237: Final tidy-up of logic and structure, added function doc to explain what is happening.

NO-JIRA: Minor code format fix: added space into if stmt.

PROTON-2237: Rearrange logic so as to avoid python version check. Minor re-arrange of tests.

22 months agoNO-JIRA: readme fixups, also prod CI jobs
Robbie Gemmell [Wed, 2 Dec 2020 10:54:33 +0000 (10:54 +0000)] 
NO-JIRA: readme fixups, also prod CI jobs

22 months agoPROTON-2172: proactor fdlimit test. Should work after PROTON-1496.
Cliff Jansen [Mon, 23 Nov 2020 18:27:47 +0000 (10:27 -0800)] 
PROTON-2172: proactor fdlimit test. Should work after PROTON-1496.

22 months agoPROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT yet again
Robbie Gemmell [Tue, 17 Nov 2020 12:22:22 +0000 (12:22 +0000)] 
PROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT yet again

22 months agoPROTON-2269: update version for 0.33.0-rc3 0.33.0 0.33.0-rc3
Robbie Gemmell [Tue, 17 Nov 2020 10:07:57 +0000 (10:07 +0000)] 
PROTON-2269: update version for 0.33.0-rc3

22 months agoPROTON-2304: fix epoll proactor hang removing and replacing same canceled timer at...
Cliff Jansen [Tue, 17 Nov 2020 06:06:07 +0000 (22:06 -0800)] 
PROTON-2304: fix epoll proactor hang removing and replacing same canceled timer at front of timers list repeatedly

22 months agoPROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT again
Robbie Gemmell [Mon, 16 Nov 2020 14:58:39 +0000 (14:58 +0000)] 
PROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT again

22 months agoupdate version for 0.33.0-rc2 0.33.0-rc2
Robbie Gemmell [Mon, 16 Nov 2020 13:11:19 +0000 (13:11 +0000)] 
update version for 0.33.0-rc2

22 months agoPROTON-2301: Further fix to raw connection wake crashes
Andrew Stitcher [Fri, 13 Nov 2020 01:17:41 +0000 (20:17 -0500)] 
PROTON-2301: Further fix to raw connection wake crashes

22 months agoPROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT
Robbie Gemmell [Thu, 12 Nov 2020 13:10:02 +0000 (13:10 +0000)] 
PROTON-2300, PROTON-2269: bump version to 0.34.0-SNAPSHOT

22 months agoupdate version for 0.33.0-rc1 0.33.0-rc1
Robbie Gemmell [Thu, 12 Nov 2020 12:57:50 +0000 (12:57 +0000)] 
update version for 0.33.0-rc1

22 months agoPROTON-2298: Disable default running of c-threaderciser tests, enable only through...
Kim van der Riet [Wed, 11 Nov 2020 22:28:55 +0000 (17:28 -0500)] 
PROTON-2298: Disable default running of c-threaderciser tests, enable only through cmake option

With changes from Robbie (mostly removals). This closes #277.

22 months agoPROTON-2295 avoid broken Go 1.15.3 in macOS CI (#276)
Jiri Daněk [Thu, 12 Nov 2020 11:36:25 +0000 (12:36 +0100)] 
PROTON-2295 avoid broken Go 1.15.3 in macOS CI (#276)

Go 1.15.3 is currently the default on macOS GH Action.

22 months agoPROTON-2269: update .so versions
Robbie Gemmell [Wed, 11 Nov 2020 10:42:58 +0000 (10:42 +0000)] 
PROTON-2269: update .so versions

22 months agoPROTON-2257: Oops! Unrevert changes committed due to bad git hygiene!
Andrew Stitcher [Tue, 10 Nov 2020 22:05:52 +0000 (17:05 -0500)] 
PROTON-2257: Oops! Unrevert changes committed due to bad git hygiene!

22 months agoPROTON-2257: Add back in aliases for renamed functions
Andrew Stitcher [Tue, 10 Nov 2020 18:49:11 +0000 (13:49 -0500)] 
PROTON-2257: Add back in aliases for renamed functions
- This keeps the shared library compatible and so not to change the major version

22 months agoPROTON-2292: backout tsan suppression. Apply fix to forced shutdown code path.
Cliff Jansen [Tue, 10 Nov 2020 17:50:07 +0000 (09:50 -0800)] 
PROTON-2292: backout tsan suppression.  Apply fix to forced shutdown code path.

22 months agoPROTON-2292: update tsan.supp for new epoll proactor timer code
Cliff Jansen [Tue, 10 Nov 2020 07:44:18 +0000 (23:44 -0800)] 
PROTON-2292: update tsan.supp for new epoll proactor timer code

22 months agoPROTON-2293: Add missing dummy pn_raw_connection_close functions
Andrew Stitcher [Tue, 10 Nov 2020 01:31:00 +0000 (20:31 -0500)] 
PROTON-2293: Add missing dummy pn_raw_connection_close functions
- Dummy functions for libuv and iocp proactor implementations

22 months agoPROTON-2292: TSAN failure in epoll_timer.c. Replace missing lock spotted by TSAN...
Cliff Jansen [Mon, 9 Nov 2020 08:25:31 +0000 (00:25 -0800)] 
PROTON-2292: TSAN failure in epoll_timer.c.  Replace missing lock spotted by TSAN and Coverity.

22 months agoPROTON-2293: Stop raw connection wakes from crashing the application
Andrew Stitcher [Thu, 15 Oct 2020 06:04:09 +0000 (02:04 -0400)] 
PROTON-2293: Stop raw connection wakes from crashing the application
- Ensure that the raw connectino is not freed is there is a pending wake.
- Ensure that a wake will not be delivered after the application closes
  the raw connection.
- Ensure that wake events will be delivered before disconnected events
  if both are scheduled to happen.

22 months agoPROTON-2291: Reduce size of epoll proactor connections
Andrew Stitcher [Tue, 20 Oct 2020 23:21:49 +0000 (19:21 -0400)] 
PROTON-2291: Reduce size of epoll proactor connections
- Remove unnecessary proactor back pointer from psocket

22 months agoPROTON-1496: epoll proactor - improved timers implementation with single timerfd...
Cliff Jansen [Sun, 8 Nov 2020 19:56:58 +0000 (11:56 -0800)] 
PROTON-1496: epoll proactor - improved timers implementation with single timerfd kernel resource

22 months agoPROTON-2290: Fix pn_raw_connection_close so that it drains anything already written
Andrew Stitcher [Fri, 6 Nov 2020 02:16:23 +0000 (21:16 -0500)] 
PROTON-2290: Fix pn_raw_connection_close so that it drains anything already written

22 months agoPROTON-2288: Replace C++ TLS certificates with more secure ones to allow tests to...
Andrew Stitcher [Thu, 5 Nov 2020 17:55:25 +0000 (12:55 -0500)] 
PROTON-2288: Replace C++ TLS certificates with more secure ones to allow tests to carry on working

23 months agoPROTON-2229: Try to improve codec performance by reducing unnecessary allocations
Andrew Stitcher [Wed, 21 Oct 2020 18:02:25 +0000 (14:02 -0400)] 
PROTON-2229: Try to improve codec performance by reducing unnecessary allocations

23 months agoNO-JIRA: Split out epoll proactor poller logic to separate routine for readability
Cliff Jansen [Tue, 20 Oct 2020 07:04:13 +0000 (00:04 -0700)] 
NO-JIRA: Split out epoll proactor poller logic to separate routine for readability

23 months agoPROTON-2170: Respect the BUILD_TESTING option to allow the user to disable tests...
Jiri Daněk [Fri, 16 Oct 2020 08:29:31 +0000 (10:29 +0200)] 
PROTON-2170: Respect the BUILD_TESTING option to allow the user to disable tests (#271)

Disable tests if the user sets the standard cmake BUILD_TESTING option to OFF:
https://cmake.org/cmake/help/v3.8/command/add_test.html#command:add_test

Fixes:
 - https://issues.apache.org/jira/browse/PROTON-2170

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Co-authored-by: Jiri Danek <jdanek@redhat.com>
23 months agoPROTON-2171: Re-add accidentally removed add_subdirectory() in c/CMakeLists.txt ...
Jiri Daněk [Fri, 9 Oct 2020 11:19:53 +0000 (13:19 +0200)] 
PROTON-2171: Re-add accidentally removed add_subdirectory() in c/CMakeLists.txt (#273)

23 months agoPROTON-2171: Add BUILD_EXAMPLES option to optionally skip building examples (#272)
Jiri Daněk [Thu, 8 Oct 2020 19:02:28 +0000 (21:02 +0200)] 
PROTON-2171: Add BUILD_EXAMPLES option to optionally skip building examples (#272)

23 months agoPROTON-2233: Remove example CMake bits that won't work in installed example directories
Andrew Stitcher [Wed, 7 Oct 2020 03:09:55 +0000 (23:09 -0400)] 
PROTON-2233: Remove example CMake bits that won't work in installed example directories
- Move running the example tests into tests/examples

23 months agoPROTON-2233: Rearrange C/C++ example CMake files so that they use the recommended...
Andrew Stitcher [Wed, 7 Oct 2020 02:46:54 +0000 (22:46 -0400)] 
PROTON-2233: Rearrange C/C++ example CMake files so that they use the recommended method
- Changed to use modern CMake imported targets
- Rearranged the in build tree CMake config files so the examples can transparently use them

2 years agoPROTON-2278: Events are received after PN_RAW_CONNECTION_DISCONNECTED if connection...
Andrew Stitcher [Wed, 30 Sep 2020 17:31:46 +0000 (13:31 -0400)] 
PROTON-2278: Events are received after PN_RAW_CONNECTION_DISCONNECTED if connection refused
- Change raw_connect to carry on after connections refused
- Add a unit test that replicates the bug
- Small refactor changing an internal API to allow us to fix bug

2 years agoNO-JIRA: Some corrections and clarifications to the raw connection documentation
Andrew Stitcher [Wed, 30 Sep 2020 16:33:51 +0000 (12:33 -0400)] 
NO-JIRA: Some corrections and clarifications to the raw connection documentation

This reverts commit e34388bea9e0cb8aa8ee5031773af55d2e2486ff.

2 years agoPROTON-2277: move comment associated with moved code. grrr
Cliff Jansen [Mon, 21 Sep 2020 16:58:19 +0000 (09:58 -0700)] 
PROTON-2277: move comment associated with moved code.  grrr

2 years agoPROTON-2277: move debug variable memory to separate from net address buffer
Cliff Jansen [Mon, 21 Sep 2020 16:45:14 +0000 (09:45 -0700)] 
PROTON-2277: move debug variable memory to separate from net address buffer

2 years agoPROTON-2277: maintain some extra epoll related state to aid debugging
Cliff Jansen [Fri, 18 Sep 2020 17:51:35 +0000 (10:51 -0700)] 
PROTON-2277: maintain some extra epoll related state to aid debugging