Mercurial > noffle
diff src/client.c @ 144:8b9366fc1361 noffle
[svn] Added timeout to Prt_getLn to avoid Noffle hanging if the
connection breaks down during a fetch.
author | enz |
---|---|
date | Sat, 23 Sep 2000 11:40:35 +0100 |
parents | d6c006a27ffe |
children | 976ff791c7ec |
line wrap: on
line diff
--- a/src/client.c Sat Sep 23 11:37:01 2000 +0100 +++ b/src/client.c Sat Sep 23 11:40:35 2000 +0100 @@ -1,7 +1,7 @@ /* client.c - $Id: client.c 191 2000-08-09 21:26:28Z bears $ + $Id: client.c 217 2000-09-23 10:40:35Z enz $ */ #if HAVE_CONFIG_H @@ -87,7 +87,7 @@ { Bool r; - r = Prt_getLn( line, client.in ); + r = Prt_getLn( line, client.in, Cfg_connectTimeout() ); if ( ! r ) logBreakDown(); return r; @@ -98,7 +98,7 @@ { Bool r; - r = Prt_getTxtLn( line, err, client.in ); + r = Prt_getTxtLn( line, err, client.in, Cfg_connectTimeout() ); if ( *err ) logBreakDown(); return r;