From: Love Hörnquist-Åstrand Date: Tue, 4 Mar 2003 11:26:40 +0000 (+0000) Subject: viced-abort-threshhold-20030303 X-Git-Tag: openafs-devel-1_3_50~348 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=41918aaf5a93eab7f35bbd8330a976e9c67e7b78;p=packages%2Fo%2Fopenafs.git viced-abort-threshhold-20030303 allow abort threshhold to be set by switch --- diff --git a/src/viced/viced.c b/src/viced/viced.c index 3389eac86..efc15286a 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -177,6 +177,7 @@ int lwps = 9; /* 6 */ int buffs = 90; /* 70 */ int novbc = 0; /* Enable Volume Break calls */ int busy_threshold = 600; +int abort_threshold = 10; int udpBufSize = 0; /* UDP buffer size for receive*/ int sendBufSize = 16384; /* send buffer size */ @@ -822,6 +823,10 @@ static int ParseArgs(int argc, char *argv[]) Sawsmall = 1; nSmallVns = atoi(argv[++i]); } + else + if (!strcmp(argv[i], "-abortthreshold")) { + abort_threshold = atoi(argv[++i]); + } else if (!strcmp(argv[i], "-k")) stack = atoi(argv[++i]); @@ -1508,8 +1513,8 @@ main(int argc, char * argv[]) rx_extraPackets = rxpackets; rx_extraQuota = 4; /* for outgoing prserver calls from R threads */ rx_SetBusyThreshold(busy_threshold, VBUSY); - rx_SetCallAbortThreshold(10); - rx_SetConnAbortThreshold(10); + rx_SetCallAbortThreshold(abort_threshold); + rx_SetConnAbortThreshold(abort_threshold); stackSize = lwps * 4000; if (stackSize < 32000) stackSize = 32000;