summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* fixes #1079 Use after free panic in tcp_dialerv1.2.3Garrett D'Amore2019-12-31
|
* fixes #1075 WebSocket heap use after freeGarrett D'Amore2019-12-31
| | | | | This also introduces a new atomic boolean type, so we can use that to trigger whether we've added the HTTP handler or not.
* fixes #1064 Potential deadlock in statistics codeGarrett D'Amore2019-12-29
| | | | | | | | fixes #1063 Include sanitizer runs in CI fixes #1068 Wssfile test sometimes fails with wrong error code While here, addressed a number of clang-tidy items, and some light cleanup of code we were already in.
* Silence a few clang-tidy complaints.Garrett D'Amore2019-12-29
|
* Remove some unused includes from POSIX resolver.Garrett D'Amore2019-12-29
|
* fixes #1065 resolver leaks work structuresGarrett D'Amore2019-12-29
| | | | | | This includes changes to support setting the sanitizer *correctly* (the old code CMake stuff didn't quite get it right), and addresses a number of failures in the test code found by the address sanitizer.
* fixes #1062 Windows client connections cannot get NNG_OPT_LOCADDRGarrett D'Amore2019-12-28
|
* fixes #986 ws_read_finish_str free invalid pointerGarrett D'Amore2019-12-28
| | | | | | Also, this has refactored the websocket stream test to the new acutest.h, and includes a much deeper test of fragmentation and reassembly of websocket streams.
* Brittleness in pair1 mono faithful test.Garrett D'Amore2019-12-27
|
* fixes #1057 reqpoll test fails (bad test logic) sometimesGarrett D'Amore2019-12-27
| | | | The reqpoll test is now moved into the common req/rep logic.
* Bind to IP address -- localhost might not go where you think.Garrett D'Amore2019-12-27
| | | | Seeing this failure in the cloud on Darwin.
* Allow more time for the listener to get going in the cloud.Garrett D'Amore2019-12-27
|
* Move the WSS file test, and hopefully provide more debuggability.Garrett D'Amore2019-12-27
|
* Add possibility to use mbedtls cmake target if availableRobert Bielik2019-12-27
|
* fixes #1051 nni_ntop is unusedGarrett D'Amore2019-12-27
|
* fixes #1037 http client crashes (pthread lock bugs)Garrett D'Amore2019-12-26
| | | | | | This reference counts both TCP and IPC dialers running on POSIX configurations, as we need to take care not to destroy the dialer until any streams associated with are completely destroyed.
* Various clang tidy fixups in the POSIX pollers.Garrett D'Amore2019-12-26
|
* fixes #1040 Convert rest of the protocols to new CMake infraGarrett D'Amore2019-12-25
|
* fixes #1038 Linux should use getentropy or getrandomGarrett D'Amore2019-12-24
|
* fixes #1032 Figure out Darwin bustednessGarrett D'Amore2019-12-24
| | | | | | | | | | | | | | | | | | | | | | | | fixes #1035 Convey is awkward -- consider acutest.h This represents a rather large effort towards cleaning up our testing and optional configuration infrastructure. A separate test library is built by default, which is static, and includes some useful utilities design to make it easier to write shorter and more robust (not timing dependent) tests. This also means that we can cover pretty nearly all the tests (protocols etc.) in every case, even if the shipped image will be minimized. Subsystems which are optional can now use a few new macros to configure what they need see nng_sources_if, nng_headers_if, and nng_defines_if. This goes a long way to making the distributed CMakefiles a lot simpler. Additionally, tests for different parts of the tree can now be located outside of the tests/ tree, so that they can be placed next to the code that they are testing. Beyond the enabling work, the work has only begun, but these changes have resolved the most often failing tests for Darwin in the cloud.
* fixes #1034 POSIX atomic handing default case is bustedGarrett D'Amore2019-12-24
|
* Address complaints found by lgtm.com.Garrett D'Amore2019-12-11
|
* Fix typo in websocket/CMakeLists.txtEvgeny Ermakov2019-12-10
|
* fixes #1004 Warning found by clang --analyzeGarrett D'Amore2019-11-11
| | | | | It's possible for an empty chunk to have a NULL data pointer. Even when copying zero bytes, this makes clang somewhat unhappy.
* Add option for preferring new messages on SUB0Nathan Kent2019-11-03
|
* fixes #970 TCP connections through docker-proxy do not reconnectGarrett D'Amore2019-09-24
|
* fixes #987 Memory leak in ipc_dialer_dial (Windows)Garrett D'Amore2019-09-23
|
* fixes #976 websocket stream calls incorrect completion callbackGarrett D'Amore2019-08-12
|
* fixes #979 ZeroTier fails with zero recvmaxGarrett D'Amore2019-08-11
|
* fixes #975 nng_http_res_alloc does not init status code properlyGarrett D'Amore2019-08-09
|
* fixes #954 large message fails with no error messageGarrett D'Amore2019-07-17
| | | | | | This removes the default 1MB limit on maximum receive sizes. Applications intended for deployment in insecure or hostile environments should choose a sensible default for NNG_OPT_RECVMAXSZ.
* fixes #969 CMake : export target to current build scopeGarrett D'Amore2019-07-17
|
* MinGW fixes for interlocked variablesGarrett D'Amore2019-06-27
|
* wrong return type in fallback atomic opGarrett D'Amore2019-06-05
|
* fixes #948 TLS listener leaks underlying TCP stream listenerGarrett D'Amore2019-05-19
|
* fix #946 Use after free in TLSGarrett D'Amore2019-05-19
| | | | | This also introduces a more efficient reference counting usage based on atomics, rather than locks.
* fixes #937 Memory Leak in wsstreamGarrett D'Amore2019-05-19
|
* fixes #923 #935 RECVBUF/SENDBUF has variable typeNathan Kent2019-05-19
|
* Add uint64 to generated legacy nng_setopt_* functions.Cody Piersall2019-05-17
| | | | | | The functions nng_dialer_setopt_uint64 and nng_dialer_setopt_uint64 are declared in nng.h but not defined, causing errors at runtime of programs that expect them to be defined.
* Fix for http chunked transferJanjaap Bos2019-05-17
|
* posix va_start incorrectGarrett D'Amore2019-05-07
|
* Introduce nni_plat_printf()Garrett D'Amore2019-05-07
| | | | | This permits the stats dump to avoid some extra buffering, and resolves a complaint about possible format buffer overruns.
* fixes #934 idhash should be a bit more robustGarrett D'Amore2019-04-24
|
* set txn->client in nni_http_transactJanjaap Bos2019-04-24
| | | | Otherwise connections are not closed in reaper.
* fixes #931 nng_ctx_send can block foreverNathan Kent2019-04-24
|
* fixes #915 Memory Leak in pubGarrett D'Amore2019-04-11
|
* fixes #919 Polling on subscriber socket recvfd seems brokenBehrooze Sirang2019-04-11
| | | | sub0_recv_cb was not calling nni_pollable_raise on sock->recvable.
* fixes #901 shorter option get/set functions for all typesJake Woltersdorf2019-04-07
| | | | | | | | | | | | - Renamed internal nng_*_getx/setx methods with "nni" prefix - Moved stream get/set option definition macros to options.h and added "NNI_" prefix - "_PTR" variant of get/set option definition macros is for when first arg is passed as pointer (`nng_stream *s` vs `nng_pipe s`) - New get/set option functions for `nng_socket` are `nng_socket_get_X` eschewing the previous `nng_getopt` pattern - Macro-fy legacy getopt/setopt and implement in terms of "new" API - nng_setopt* use "new" shorter API. Add missing uint64 set functions. - Shorter get/set option functions get own man page and old getopt/setopt link to them - Built with -DNNG_ENABLE_DOC=ON and part of central libnng index - Update copyright
* Tuning zt transport pingJanjaap Bos2019-04-07
| | | | | | There is quite some package loss, which I will pursue later (in nng / zerotier). For now it helps to tune these settings to keep the peer relations.
* fixes #815 Eliminate socket filters on message queuesGarrett D'Amore2019-03-13
| | | | | | | This also eliminates the enforcement of NNG_OPT_RECVMAXSZ for inproc, which never really made much sense. This helps inproc go faster. While here, also clean up the entry point for protocols to support a drain option, since we don't use that anywhere.