diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-28 23:32:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-28 23:32:27 -0800 |
| commit | 9981f665d8563902517a4b50f8bf8348ab5caf39 (patch) | |
| tree | bb0b13d863f7888b635d0b839efc8c30857b1a03 /src/core | |
| parent | d574649899a29ce7eb96485c0a4c606f14f87011 (diff) | |
| download | nng-9981f665d8563902517a4b50f8bf8348ab5caf39.tar.gz nng-9981f665d8563902517a4b50f8bf8348ab5caf39.tar.bz2 nng-9981f665d8563902517a4b50f8bf8348ab5caf39.zip | |
resolver: default to just a single resolver thread
Nearly all applications are either purely server based (needing no
resolvers really), or dialers only dialing a single destination.
These do not need multiple dialers, and threads are expensive on some
platforms (and they are more trouble during debugging.)
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/init.c b/src/core/init.c index 4b31995a..9d9cdf48 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -33,7 +33,7 @@ extern void nni_tls_sys_fini(void); #endif #ifndef NNG_RESOLV_CONCURRENCY -#define NNG_RESOLV_CONCURRENCY 4 +#define NNG_RESOLV_CONCURRENCY 1 #endif #ifndef NNG_MAX_TASKQ_THREADS |
