nanomsg / nng

nanomsg-next-generation -- light-weight brokerless messaging
https://nng.nanomsg.org
MIT License
3.78k stars 485 forks source link

fixes #1572 nng creates too many threads #1755

Closed gdamore closed 9 months ago

gdamore commented 9 months ago

This further limits some of the thread counts, but principally it offers a new runtime facility, nng_init_set_parameter(), which can be used to set certain runtime parameters on the number of threads, provided it is called before the rest of application start up.

This facility is quite intentionally "undocumented", at least for now, as we want to limit our commitment to it. Still this should be helpful for applications that need to reduce the number of threads that are created.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (07ad78c) 79.22% compared to head (4a45113) 79.21%.

Files Patch % Lines
src/core/init.c 89.47% 4 Missing :warning:
src/platform/posix/posix_resolv_gai.c 92.30% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1755 +/- ## ========================================== - Coverage 79.22% 79.21% -0.02% ========================================== Files 94 94 Lines 21015 21074 +59 ========================================== + Hits 16650 16693 +43 - Misses 4365 4381 +16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.