From 436c6ccceb8af8f48a08a13f0871f32965bdb4b2 Mon Sep 17 00:00:00 2001 From: cvs Date: Thu, 19 Aug 2004 11:57:17 +0000 Subject: [PATCH] introduced defaults for ReadTimeOut and ReadUserPasswdTimeout M.Z. --- nserver.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nserver.c b/nserver.c index bd9b3a3e..5c60b35a 100644 --- a/nserver.c +++ b/nserver.c @@ -157,14 +157,22 @@ { i = atoi(pPtr); iCommandTimeOut = i; - } + } + else + { + iCommandTimeOut = 100; /* this is in microseconds and anyway o.k. */ + } pPtr = NULL; pPtr = IFindOption(pSICSOptions,"ReadUserPasswdTimeout"); if(pPtr != NULL) { i = atoi(pPtr); iPasswordTimeOut = i; - } + } + else + { + iPasswordTimeOut = 1; /* never used, but checked ! */ + } assert((pReader = CreateNetReader(self,iPasswordTimeOut,iCommandTimeOut)) != NULL); TaskRegister(self->pTasker, NetReaderTask,