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);
|
i = atoi(pPtr);
|
||||||
iCommandTimeOut = i;
|
iCommandTimeOut = i;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iCommandTimeOut = 100; /* this is in microseconds and anyway o.k. */
|
||||||
|
}
|
||||||
pPtr = NULL;
|
pPtr = NULL;
|
||||||
pPtr = IFindOption(pSICSOptions,"ReadUserPasswdTimeout");
|
pPtr = IFindOption(pSICSOptions,"ReadUserPasswdTimeout");
|
||||||
if(pPtr != NULL)
|
if(pPtr != NULL)
|
||||||
{
|
{
|
||||||
i = atoi(pPtr);
|
i = atoi(pPtr);
|
||||||
iPasswordTimeOut = i;
|
iPasswordTimeOut = i;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iPasswordTimeOut = 1; /* never used, but checked ! */
|
||||||
|
}
|
||||||
assert((pReader = CreateNetReader(self,iPasswordTimeOut,iCommandTimeOut)) != NULL);
|
assert((pReader = CreateNetReader(self,iPasswordTimeOut,iCommandTimeOut)) != NULL);
|
||||||
TaskRegister(self->pTasker,
|
TaskRegister(self->pTasker,
|
||||||
NetReaderTask,
|
NetReaderTask,
|
||||||
|
Reference in New Issue
Block a user