From 9981f665d8563902517a4b50f8bf8348ab5caf39 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 28 Dec 2024 23:32:27 -0800 Subject: 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.) --- src/core/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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 -- cgit v1.2.3-70-g09d2