Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #1572 nng creates too many threads #1755

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Jan 1, 2024

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.

@gdamore gdamore force-pushed the gdamore/init-params branch from e8ba739 to e2ada26 Compare January 1, 2024 23:14
Copy link

codecov bot commented Jan 1, 2024

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 ⚠️
src/platform/posix/posix_resolv_gai.c 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdamore gdamore force-pushed the gdamore/init-params branch 2 times, most recently from 24e3c7b to db6f6af Compare January 1, 2024 23:41
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.
@gdamore gdamore force-pushed the gdamore/init-params branch from db6f6af to 4a45113 Compare January 2, 2024 00:39
@gdamore gdamore merged commit 4a45113 into master Jan 2, 2024
17 of 18 checks passed
@gdamore gdamore deleted the gdamore/init-params branch January 2, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant