comparison src/fetch.c @ 193:021d145e34e9 noffle

[svn] * src/fetch.c: Only leave articles in the requested list if the error fetching them was fatal. Otherwise article requests will accumulate indefinitely (e.g retrieving through NNTPcache when it can't find the body of an article, now or event. Yes, this happened to me; I had nearly 2000 requests backed up and never being cleared). * src/group.c: The weekend's change introduced code that causes a bus error on Sparc ( *(time_t *)p = xxx ). Replace with a safe memcpy, and also use memcpy when reading the Entry and time items to remove warnings on Sparc compilation.
author bears
date Mon, 22 Oct 2001 14:41:43 +0100
parents f1bacee93ca6
children 24d4cd032da5
comparison
equal deleted inserted replaced
192:b9ef99708d1c 193:021d145e34e9
1 /* 1 /*
2 fetch.c 2 fetch.c
3 3
4 $Id: fetch.c 307 2001-09-12 20:33:44Z bears $ 4 $Id: fetch.c 312 2001-10-22 13:41:43Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
212 Str msgId; 212 Str msgId;
213 int stat; 213 int stat;
214 214
215 ASSERT( Lock_gotLock() ); 215 ASSERT( Lock_gotLock() );
216 stat = Client_retrieveArtList( list, artcnt, artmax ); 216 stat = Client_retrieveArtList( list, artcnt, artmax );
217 if ( stat != STAT_OK ) 217 if ( IS_FATAL( stat ) )
218 return stat; 218 return stat;
219 p = list; 219 p = list;
220 while ( ( p = Utl_getLn( msgId, p ) ) ) 220 while ( ( p = Utl_getLn( msgId, p ) ) )
221 Req_remove( fetch.serv, msgId ); 221 Req_remove( fetch.serv, msgId );
222 return STAT_OK; 222 return STAT_OK;