windows-service-procs-20080912
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 12 Sep 2008 15:32:23 +0000 (15:32 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 12 Sep 2008 15:32:23 +0000 (15:32 +0000)
LICENSE MIT

if we are going to use hot threads it would be useful if there were
some additional server threads available to become listeners as
needed.

src/WINNT/afsd/afsd_init.c

index 376be0b..a056519 100644 (file)
@@ -1350,6 +1350,9 @@ int afsd_InitCM(char **reasonP)
         *reasonP = "unknown error";
         return -1;
     }
+    rx_SetMinProcs(serverp, 2);
+    rx_SetMaxProcs(serverp, 4);
+    rx_SetCheckReach(serverp, 1);
 
     nullServerSecurityClassp = rxnull_NewServerSecurityObject();
     serverp = rx_NewService(0, RX_STATS_SERVICE_ID, "rpcstats",
@@ -1359,6 +1362,8 @@ int afsd_InitCM(char **reasonP)
         *reasonP = "unknown error";
         return -1;
     }
+    rx_SetMinProcs(serverp, 2);
+    rx_SetMaxProcs(serverp, 4);
         
     /* start server threads, *not* donating this one to the pool */
     rx_StartServer(0);