]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
_actually_ raise the limit to the max if impossible to fit within the hard limit
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 6 Feb 2014 12:33:18 +0000 (13:33 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 6 Feb 2014 12:39:01 +0000 (13:39 +0100)
pdns/pdns_recursor.cc

index 9a87eabee77e282bfe5f5b738c41fb7076e379ba..9cde5380c4dd08adff1a77618cb85f0e99c52cf6 100644 (file)
@@ -1861,6 +1861,7 @@ int serviceMain(int argc, char*argv[])
       int newval = getFilenumLimit(true) / g_numThreads;
       L<<Logger::Warning<<"Insufficient number of filedescriptors available for max-mthreads*threads setting! ("<<availFDs<<" < "<<g_maxMThreads*g_numThreads<<"), reducing max-mthreads to "<<newval<<endl;
       g_maxMThreads = newval;
+      setFilenumLimit(g_maxMThreads * g_numThreads);
     }