PSI sics-cvs-psi-complete-tree-post-site-support

This commit is contained in:
2004-03-09 15:18:11 +00:00
committed by Douglas Clowes
parent 6373f6b0fb
commit ae77364de2
196 changed files with 8344 additions and 3485 deletions

View File

@@ -472,7 +472,7 @@ CreateSocketAdress(
/*
how may cycles to read in order to have a timeout
*/
nLoop = timeout/10;
nLoop = timeout/5;
if(nLoop <= 0)
{
nLoop = 1;
@@ -480,7 +480,7 @@ CreateSocketAdress(
for(i = 0; i < nLoop; i++)
{
iRet = NETAvailable(self,10);
iRet = NETAvailable(self,5);
if(iRet < 0)
{
return iRet;
@@ -521,6 +521,13 @@ CreateSocketAdress(
return 1;
}
}
if(read >= iBufLen)
{
/*
we have filled the buffer but not found a terminator
*/
return -1;
}
}
}
return 0; /* timeout! */