summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Use protocol private data instead of options for messages.mqttGarrett D'Amore2021-06-19
| | | | This is simpler and faster.
* Add message option manipulation.Garrett D'Amore2021-06-18
| | | | | This is going to be needed for MQTT options, and it has to deal with multiple user options (which may be repeated), etc.
* MQTT API swag.Garrett D'Amore2021-06-17
|
* fixes #1436 Guard against UB in sub0_ctx_subscribe (#1437)Kristóf Havasi2021-04-10
| | | In case sub0_ctx_subscribe is called to subscribe to _all_ topics
* Add a couple of test cases for nng_sleep_aio.Garrett D'Amore2021-03-12
|
* fix implicit declaration warnings for pthread_set_name_np on OpenBSD (#1425)Dave Voutila2021-03-11
| | | | | | OpenBSD requires an additional header for both pthread_set_name_np and pthread_get_name_np. See http://man.openbsd.org/pthread_set_name_np for details.
* Build fix for NetBSD (#1433)Pierre Pronchery2021-03-11
|
* remove extraneous comment, set conn_init static (#1424)Dave Voutila2021-02-17
| | | | | | The comment is an artifact from an old tls_reap function and no longer describes the following function (conn_init). Function conn_init should be marked static.
* prep for 1.4.0v1.4.0Garrett D'Amore2021-02-07
|
* fixes #1421 Failure in tcp and tls local source handlingGarrett D'Amore2021-02-07
|
* fixes #1419 pairv0 performance workGarrett D'Amore2021-01-24
| | | | | | This takes the performance work we did for pairv1, and provides an implementation for pairv0. The upshot should be a nice performance boost for pair v0.
* Fix typo in tls_common.c (#1412)Evgeny Ermakov2021-01-24
|
* fixes #1415 pair.c compiler warningGarrett D'Amore2021-01-24
|
* fixes #1413 nni_thr_setname NULL pointer dereferenceGarrett D'Amore2021-01-24
|
* Fix comment in protocol.h (#1410)Evgeny Ermakov2021-01-19
|
* fixes #808 Very slow PAIR performance compared to nanomsgGarrett D'Amore2021-01-18
| | | | | | This is only the pair v1 protocol. Pair v0 and polyamorous mode still have work to do. We probably won't "fix" the performance for poly mode since that's deprecated anyway.
* fixes #1403 http ws listeners added without a lockGarrett D'Amore2021-01-10
|
* fixes #1401 valgrind reports leaks in all testsGarrett D'Amore2021-01-03
| | | | | | | This arranges for nng_fini to be called via atexit in the test version of the library. It also cleans up some of the actual tests to reduce extraneous (and in some cases incorrect) calls to nng_fini.
* fixes #1393 Use after free in http (#1395)Evgeny Ermakov2021-01-03
|
* fixes #1398 integrate new acutest.h (#1400)Garrett D'Amore2021-01-03
|
* Fix compilation warnings (#1397)Evgeny Ermakov2021-01-02
|
* getaddrinfo(3) on musl & BSDs fails with servname = "" (#1396)Dave Voutila2021-01-02
| | | | | | | | | | | | | | | | | | | | | | If one calls getaddrinfo(3) on OpenBSD like so, it returns -8 EAI_NONAME: struct addrinfo hints; struct addrinfo *results; int rv; results = NULL; memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_ADDRCONFIG; hints.ai_flags |= AI_PASSIVE; hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; rv = getaddrinfo("localhost", "", &hints, &results); In the above code, that mirrors the current logic in resolv_task(), rv will end up being -8. On non-musl, non-BSD posix systems I tested (only amd64 Debian), it succeeds and returns 0.
* Fix compilation errors when NNG_ELIDE_DEPRECATED is ON (#1392)Evgeny Ermakov2021-01-02
|
* fixes #1345 Restructure the source treeGarrett D'Amore2021-01-01
| | | | | This is not quite complete, but it sets the stage for other protocols (such as zmq or mqtt) to be added to the project.
* fixes #1389 PAIRv1 can remove a few bitsGarrett D'Amore2020-12-28
|
* fixes #1363 build ios version failsGarrett D'Amore2020-12-27
|
* fixes #1386 remove NNI_PROTO_FLAG_NOMSGQGarrett D'Amore2020-12-27
|
* fixes #1385 nni_thr_wait is unusedGarrett D'Amore2020-12-27
|
* fixes #972 Very slow pull/push performance compared to ZMQGarrett D'Amore2020-12-27
| | | | | | | | | | This refactors the pipeline protocol to use lightweight mq instead of the more expensive message queue structure. It also provides nicer backpressure and buffering support. The test suite was updated and converted to NUTS as well. This won't completely close the gap, but it should help quite a bit.
* fixes #1172 nni_aio_lk is white hotGarrett D'Amore2020-12-20
|
* Fix compilation error (#1375)Evgeny Ermakov2020-12-20
|
* fixes #1380 nni_aio optimizationsGarrett D'Amore2020-12-20
| | | | fixes #1048 nng_aio reuse error messages are unhelpful
* fixes #1377 nni_aio_fini should not reacquire nni_aio_lkGarrett D'Amore2020-12-20
|
* fixes #1372 nni_reap could be smallerGarrett D'Amore2020-12-19
|
* fixes #1313 support deferred nng_aio destructionGarrett D'Amore2020-12-12
|
* fixes #1368 Incorrect recv pollfd handing for SUB.Garrett D'Amore2020-12-07
| | | | | | | This hopefully addresses the problem of both missed poll events (meaning we don't flag the descriptor as pollable), and spurious poll events (which might have happened when a message was delivered synchronously.)
* Move TCP out of supplemental.Garrett D'Amore2020-12-05
| | | | This was only used internally, and can live as part of core.
* fixes #1365 nng_recvmsg returns NNG_ETIMEDOUT rather than NNG_EAGAINGarrett D'Amore2020-12-05
|
* Convert list to new test framework; detached node fixes.Garrett D'Amore2020-11-24
| | | | | List nodes that are not part of a list should return NULL when asking for the next or previous item.
* fixes #1358 nni_strtou64 and nni_strtox64 could be replaced with strtoullGarrett D'Amore2020-11-23
|
* New NUTS test framework (NNG Unit Test Support).Garrett D'Amore2020-11-23
| | | | | | | | | | | | | This is based on testutil/acutest, but is cleaner and fixes some short-comings. We will be adding more support for additional common paradigms to better facilitate transport tests. While here we added some more test cases, and fixed a possible symbol collision in the the stats framework (due to Linux use of a macro definition of "si_value" in a standard OS header). Test coverage may regress slightly as we are no longer using some of the legacy APIs.
* Work for test refactoring.Garrett D'Amore2020-11-18
| | | | | | | | | | | | | | | | | | | | | | There are a few major areas in this change. * CMake options are now located in a common cmake/NNGOptions.cmake file. This should make it easier for folks to figure out what the options are, and how they are used. * Tests are now scoped with their directory name, which should avoid possible name collisions with test names. * A number of tests have been either moved or incorporated into the newer testutil/acutest framework. We are moving away from my old c-convey framework to something easier to debug. * We use CMake directories a bit more extensively leading to a much cleaner CMake structure. It's not complete, but a big step in the right direction, and a preview of future work. * Tests are now run with verbose flags, so we get more test results in the CI/CD logs.
* Centralize the scheme handling for HTTP schemes.Garrett D'Amore2020-11-17
|
* fixes #1200 Shouldn't nng_http_server_stop be synchronous?Garrett D'Amore2020-11-17
|
* fixes #1355 wss4 and wss6 don't work as they shouldGarrett D'Amore2020-11-17
| | | | This also properly reenables the wssfile_test.
* fixes #1353 Move recvmax test for IPC into ipc testGarrett D'Amore2020-11-15
|
* fixes #1351 Move IPC dialer and listener props tests into new test suiteGarrett D'Amore2020-11-15
|
* fixes #1071 tran_chkopt can be cleaned upGarrett D'Amore2020-11-15
| | | | | | | | | | | | | | | | | This is a sweeping cleanup of the transport logic around options, and also harmonizes the names used when setting or getting options. Additionally, legacy methods are now moved into a separate file and can be elided via CMake or a preprocessor define. Fundamentally, the ability to set to transport options via the socket is deprecated; there are numerous problems with this and my earlier approaches to deal with this have been somewhat misguided. Further these approaches will not work with future protocol work that is planned (were some options need to be negotiated with peers at the time of connection establishment.) Documentation has been updated to reflect this. The test suites still make rather broad use of the older APIs, and will be converted later.
* fixes #1087 CMakeLists structural improvements desiredGarrett D'Amore2020-11-14
| | | | | This doesn't modularize all the tests yet, but it goes a long way in the right direction.
* *Fix Add missing #define when disabling NNG_ENABLE_STATS (#1342)JaylinYu2020-11-13
| | | Co-authored-by: Jaylin <oblivionangel@sina.com>