windows-rx-extra-packets-20080816
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 16 Aug 2008 18:00:50 +0000 (18:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 16 Aug 2008 18:00:50 +0000 (18:00 +0000)
LICENSE MIT

Make the default number of pre-allocated rx packets equal to the number
of threads times the rx window size.

src/WINNT/afsd/afsd_init.c

index d22fb1e..132d46c 100644 (file)
@@ -1058,7 +1058,7 @@ int afsd_InitCM(char **reasonP)
     code = RegQueryValueEx(parmKey, "RxExtraPackets", NULL, NULL,
                            (BYTE *) &rx_extraPackets, &dummyLen);
     if (code != ERROR_SUCCESS) {
-        rx_extraPackets = 120;
+        rx_extraPackets = (numBkgD + numSvThreads + 5) * 64;
     }
     if (rx_extraPackets)
         afsi_log("RX extraPackets is %d", rx_extraPackets);