2
0
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:
Bob Halley
1998-11-12 23:31:42 +00:00
parent 26ebe15d05
commit d2cb9efe81

View File

@@ -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);