aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* fix: use ifdef for NNG_TEST_LIBMarco Casaroli2023-11-25
| | | | | | | In some places, we use ifdef, and others if. This normalizes for always using ifdef, so we can compile when this macro is not defined.
* fix: use ifdef for NNG_ENABLE_STATSMarco Casaroli2023-11-25
| | | | | | | In some places, we use ifdef, and others if. This normalizes for always using ifdef, so we can compile when this macro is not defined.
* [fixed] fix description of function nng_http_handler_collect_body()alawn-wang2023-11-25
|
* fixes #1675 undefined behavior in posix ipc_dialer_dialGarrett D'Amore2023-09-14
| | | | (This also affects TCP, and fixed there.)
* Update win_tcpconn.cNissimBendanan2023-09-14
| | | | | fix compile error in nano using clang version 16.0.5 fix issue: https://github.com/nanomsg/nng/issues/1676
* nng_aio_stop documentation is badly incorrectGarrett D'Amore2023-09-14
| | | | | The documentation for this function had not been updated in a long time, and reflected behavior that is incorrect.
* fixes #1687 Generated HTML documentation title tags are emptyGarrett D'Amore2023-09-14
| | | | | This also updates libascii and go-get dependencies to allow the pubrefman tool to work again.
* fixes #1619 expose expire threads tunablesPaulo Henrique Silva2023-08-27
| | | | | | | | | | | | | | | | | | This change makes expire threads tunable follows the same strategy as taskq threads tunables. Add NNG_NUM_EXPIRE_THREADS to override the default behavior (`n_cpu` expire threads). The NNG_MAX_EXPIRE_THREADS limit is always applied if > 0, even if you specify the desired number of threads using NNG_NUM_EXPIRE_THREADS. NNG_EXPIRE_THREADS is not used anymore. This was only referenced in the code but never defined on CMake. The logic to cap expire threads between 1 and 256 was removed. If users set no limits, whatever value they choose will be used instead of being silently overridden by us.
* fix typo in nng_thread_set_name docPaulo Henrique Silva2023-08-27
| | | | function name was wrong in the code snippet.
* Skip URI parameters when serving a directory (http_server)Robert Bielik2023-08-23
|
* typozheng shuyuan2023-08-23
| | | change message to function name
* Follow clang-format defined styleC-o-r-E2023-08-23
|
* Add forwarder demoC-o-r-E2023-08-23
|
* fix the wrong size in stream xfr alloc.wangha2023-08-23
|
* fixes #1683 NNG_MAX_EXPIRE_THREADS tunable documentationPaulo Henrique Silva2023-08-23
| | | | | | | NNG_MAX_EXPIRE_THREADS docs say that 0 means unlimited, but there is a code check that imposes a limit between [1, 256]. This commit fixes the doc.
* fix copyrightsGarrett D'Amore2023-04-23
|
* fixes #1658 Possible use-after-free in dialerGarrett D'Amore2023-04-23
|
* fixes #1657 Use after free in listener (data race)Garrett D'Amore2023-04-23
|
* fixes #1619 Expose NNG_MAX_EXPIRE_THREADS via CMakeGarrett D'Amore2023-04-19
|
* fixes#1611 http_sconn_error() in http_server.c; use after freeGarrett D'Amore2023-04-19
|
* posix_resolv_gai.c: add AI_NUMERICSERV where undefinedSergey Fedorov2023-04-19
|
* Birth pipe object with non-zero reference.Garrett D'Amore2023-04-19
|
* fixes #1610 nni_sock_open() in socket.c: use after freeGarrett D'Amore2023-04-19
|
* Get common name and subject alternative names of peer certificate (#1617)Christian Fischbach2023-02-08
| | | Co-authored-by: Christian Fischbach <cfischbach@mac.com>
* Fix version used in CMakefiles.Garrett D'Amore2023-02-07
|
* Socket close may leak messages.Garrett D'Amore2023-02-07
| | | | | | We try to move the msgq close up earler. While here we can stop dropping and reacquiring the lock -- this is likely left over and may lead to races.
* Minor formatting fix.Garrett D'Amore2023-02-07
|
* Revert "fixes 1543 (#1616)"Garrett D'Amore2023-02-05
| | | | This reverts commit 8461c7207b440f5ba8c51b2236fcfa178f415a6f.
* Revert "fixes#1175 nng_listen occasionally fails when reusing ipc socket on ↵Garrett D'Amore2023-02-05
| | | | | | Windows (#1562)" This reverts commit 1892e1d6d102d1fbd37e2c3bbb59dc35d81c8b33.
* Don't bump error counters for NNG_ECLOSED.Garrett D'Amore2023-02-05
|
* src: sp: tcp: Finish receive aio on close (#1636)Dmitry Shifrin2023-02-05
| | | | Finish receive aio on tcp pipe close
* fixes#1175 nng_listen occasionally fails when reusing ipc socket on Windows ↵Garrett D'Amore2023-02-05
| | | | (#1562)
* fixes 1543 (#1616)josh salit2023-02-05
| | | fixes #1543 by aborting tasks that may have been prepped, but not yet started.
* Fix PAIR v0 not finalizing the pollables when closing socket (#1640)Ricardo Catalinas Jiménez2023-02-05
| | | | This function needs to be pretty much identical between PAIR v0 and v1, it was missing just the call to release the pollable resources.
* Fill NNG_PKGS to request nng dependencies from installed location. (#1641)Garrett D'Amore2023-02-05
| | | | Signed-off-by: Andrey Vostrikov <andrey.vostrikov@cogentembedded.com> Co-authored-by: Andrey Vostrikov <andrey.vostrikov@cogentembedded.com>
* Update idhash.c (#1638)shikokuchuo2023-02-05
| | | Fix for UBSAN error. As `id_reg_map` is initialised as NULL and passing NULL to `memcpy()` is undefined. Should make no difference to compiled code. Purely to appease the automated checks I have to deal with on my side. Thanks!
* Fixes for some security complaints.Garrett D'Amore2022-12-31
| | | | | | | None of these changes are actual security bugs, but GitHub's scanner reports false positives at Critical severity for them. (There are a number of complaints from that scanner, many of which we do not necessarily agree with.)
* Fixup more badges. Also LGTM.com is gone.Garrett D'Amore2022-12-31
|
* Fix badges (broken by shields.io).Garrett D'Amore2022-12-31
|
* Ignore .cache (from clangd).Garrett D'Amore2022-12-31
|
* Silence NNI_ASSERT warnings when building with NDEBUG (#1621) (#1622)Ruben Valls2022-10-18
|
* Markup fixGarrett D'Amore2022-08-20
|
* Ukraine badge.Garrett D'Amore2022-08-20
|
* Fixes the call to setsockopt(SO_UPDATE_ACCEPT_CONTEXT) on Windows (#1604)Ruben Valls2022-07-15
| | | From the Windows docs, this option must receive as parameters the listener socket.
* Fixes compiling when NNG_ENABLE_STATS is OFF (#1600)Ruben Valls2022-06-20
| | | The socket member `st_name` is not available when NNG_ENABLE_STATS is OFF.
* Fix mingw atomics (#1601)Ruben Valls2022-06-20
| | | | | | | | | | * Fixes compiling on Windows with Mingw Fixes the build error: "InterlockedDecrementAcquire64 not defined" on Mingw * fixes semantics of InterlockedDecrementRelease64 on Mingw From Microsoft docs, InterlockedDecrementRelease64 returns the resulting decremented value. The equivalent function on Mingw is `__atomic_sub_fetch`, not `__atomic_fetch_sub` (which returns the previous value).
* Fix out-of-bounds error in http_uri_canonify(). (#1595)Manuel Saraiva2022-05-31
|
* fixes Undefined reference to nni_atomic_dec & nni_atomic_dec64 on Windows. ↵alvin12212022-05-29
| | | | (#1591)
* fixes #1586 Undefined reference to nni_atomic_swap & nni_atomic_cas(Built by ↵alvin12212022-05-29
| | | | gcc 4.8.5 ). (#1587)
* fixes #1574 Non-blocking version of nng_aio_wait / nng_aio_resultGarrett D'Amore2022-04-18
| | | | | | | This introduces a new API, nng_aio_busy(), that can be used to query the status of the aio without blocking. Some minor documentation fixes are included.