Services: threadperclient when names are resolved by the system

A service resolving names with the C library, sysresolve or by default
with no name server given or found, waits for it other than in
sockpoll(): each client has a thread. sysresolves() tells it for a
resolve mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vladimir DubrovinandClaude Opus 5.5 committed 2026-10-24 20:48:42 +03:00
1 parent 0d6b2950f0
commit fea5bae665
3 files changed
+10

No files matched your search

+3
View File
@@ -640,6 +640,9 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
if(srv->o_nsfd >= 0) srv->threadperclient = 1;
#endif
if(srv->logger && srv->logger->type && srv->logger->type->blocks) srv->threadperclient = 1;
#ifndef STDMAIN
if(sysresolves(srv->resolvmode)) srv->threadperclient = 1;
#endif
#ifndef STDMAIN
if((error = copyfilter(conf->filters, srv))) return error;