Work correctly with FSP_TIMEOUT set to 0
This commit is contained in:
parent
4c573d0f6a
commit
c5662cb879
|
|
@ -2,6 +2,7 @@ Version NEXT
|
|||
fhostcmd: Fixed output of FSP_TRACE variable for Bourne style shells
|
||||
correctly intialize to zero client packet sent statistic counter
|
||||
note default timeout values in fsp_env man page
|
||||
setting environment value FSP_TIMEOUT to <=0 uses 4byte maxint value
|
||||
|
||||
Version 2.8.1b26 - 1 Oct 2009
|
||||
fver now reports if server can process extra data in input packets.
|
||||
|
|
|
|||
|
|
@ -490,7 +490,8 @@ static void util_get_env (void)
|
|||
if(!(env_local_dir = getenv("FSP_LOCAL_DIR"))) env_local_dir=".";
|
||||
|
||||
if(!(p = getenv("FSP_TIMEOUT"))) env_timeout = DEFAULT_TIMEOUT;
|
||||
else env_timeout = atol(p);
|
||||
else env_timeout = atoi(p);
|
||||
if ( env_timeout <= 0 ) env_timeout = 0x7fffffff;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user