mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-28 07:59:41 +08:00
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:
1 parent
0d6b2950f0
commit
fea5bae665
3 files changed
+10
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user