From 41918aaf5a93eab7f35bbd8330a976e9c67e7b78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist-=C3=85strand?= Date: Tue, 4 Mar 2003 11:26:40 +0000 Subject: [PATCH] viced-abort-threshhold-20030303 allow abort threshhold to be set by switch --- src/viced/viced.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.5