mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
increase max workers to 100; still a good idea to clamp nworkers
This commit is contained in:
@@ -67,7 +67,7 @@ void
|
||||
main(int argc, char *argv[]) {
|
||||
unsigned int nworkers;
|
||||
unsigned int i;
|
||||
isc_thread_t workers[24];
|
||||
isc_thread_t workers[100];
|
||||
char name[100];
|
||||
void *dupname;
|
||||
|
||||
@@ -75,6 +75,8 @@ main(int argc, char *argv[]) {
|
||||
nworkers = atoi(argv[1]);
|
||||
else
|
||||
nworkers = 2;
|
||||
if (nworkers > 100)
|
||||
nworkers = 100;
|
||||
printf("%d workers\n", nworkers);
|
||||
|
||||
INSIST(isc_rwlock_init(&lock, 5, 10) == ISC_R_SUCCESS);
|
||||
|
Reference in New Issue
Block a user