Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!math.fu-berlin.de!opal!unido!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Newsgroups: news.software.b Subject: Re: c-news: Date: too far in the future??? Message-ID: <0HL_7MB@smurf.sub.org> Date: 31 Mar 91 02:38:17 GMT References: <1991Mar29.151419.8855@zaphod.mps.ohio-state.edu> Organization: University of Karlsruhe, FRG Lines: 35 In news.software.b, article , brendan@cs.widener.edu (Brendan Kehoe) writes: < > < > I had the same problem (~400 out of 8000+); so I decided for the < > time being to just take out the offending test. (Posts made 4 or 5 < > minutes before I got it were dying, so I figured something had to < > be fudged.) < < That's what I get for responding right away .. it turns out that the < problem is with Dave Alden's relaynews patch -- since it's running < as a daemon, 'now' [in the (date > now + CLOCKSLOP) test] remains the < same, so after a day things start getting interesting. He's in the < process of patching it now. < That shouldn't happen -- see the C News copyright statement. Besides, the patch involves three lines (making the static variable "now", in procart.c, external, and zeroing it in the main loop) and is pretty trivial. -- Once you know that the bug exists, that is. :-( Incidentally, another problem with these patches is that they stop compressed batches from working because there's no more newsrun trying to uncompress them any more. My fix was to create a special "crnews" script to send compressed batches to which uncompresses the news as they come in and passes them to rnews. I suppose it's equally possible to pipe directly into relaynews. Other than that, running relaynews as daemon and letting nntpd create a file per article seems to work OK. The daemon mode shoud probably be part of C News proper, if only to make sure that such mistakes as the above don't happen again. ;-) -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330) \o)/