introduced defaults for ReadTimeOut and ReadUserPasswdTimeout M.Z.
This commit is contained in:
12
nserver.c
12
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,
|
||||
|
Reference in New Issue
Block a user