Mercurial > noffle
diff src/noffle.c @ 180:09ca6eb5c7ff noffle
[svn] * TODO,src/client.c,src/client.h,src/fetch.c,src/fetch.h,src/noffle.c:
Improve error checking during fetches. A fetch is now aborted immediately
if the connection times out or if an unexpected response arrives.
This should fix problems with articles appearing in the wrong group,
and possibly other mysterious happenings.
author | bears |
---|---|
date | Wed, 09 May 2001 12:33:43 +0100 |
parents | cf2274194d38 |
children | fed1334d766b |
line wrap: on
line diff
--- a/src/noffle.c Wed May 09 12:15:31 2001 +0100 +++ b/src/noffle.c Wed May 09 12:33:43 2001 +0100 @@ -10,7 +10,7 @@ received for some seconds (to allow multiple clients connect at the same time). - $Id: noffle.c 261 2001-02-26 22:41:26Z mnalis $ + $Id: noffle.c 279 2001-05-09 11:33:43Z bears $ */ #if HAVE_CONFIG_H @@ -162,17 +162,19 @@ while ( Cfg_nextServ( serv ) ) if ( Fetch_init( serv ) ) { - Fetch_postArts(); + Bool connOK; + + connOK = Fetch_postArts(); - Fetch_getNewGrps(); + connOK = connOK && Fetch_getNewGrps(); /* Get overviews of new articles and store IDs of new articles that are to be fetched becase of FULL or THREAD mode in the request database. */ - Fetch_updateGrps(); + connOK = connOK && Fetch_updateGrps(); /* get requested articles */ - Fetch_getReq_(); + connOK = connOK && Fetch_getReq_(); Fetch_close(); } @@ -215,9 +217,11 @@ while ( Cfg_nextServ( serv ) ) if ( Fetch_init( serv ) ) { + Bool connOK = TRUE; + if ( noffle.queryGrps ) - Client_getGrps(); - if ( noffle.queryDsc ) + connOK = Client_getGrps(); + if ( connOK && noffle.queryDsc ) Client_getDsc(); Fetch_close(); }