From 11b6b00e0e7112d70b105de350e7c3ea459d2380 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 16 Aug 2008 18:11:01 +0000 Subject: [PATCH] DEVEL15-windows-rx-extra-packets-20080816 LICENSE MIT Make the default number of pre-allocated rx packets equal to the number of threads times the rx window size. (cherry picked from commit dbd98583d35d6aea57cb4d9c46790479dc1a137e) --- src/WINNT/afsd/afsd_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 4e9470bd0..b2a9f4825 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -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); -- 2.39.5