Article View: news.software.nntp
Article #54784Re: Article numbering and handling article number rollover
From: Howard Siegel
Date: Wed, 24 Oct 2001 04:56
Date: Wed, 24 Oct 2001 04:56
58 lines
2970 bytes
2970 bytes
Andrew, Thanks for the info... andrew@erlenstar.demon.co.uk writes: > Howard> 1) What is the largest article number that I can expect to > Howard> get back from the NNTP server? > > 2^32-1 That's a seriously large number! > Howard> Is a signed 32 integer sufficient to hold article numbers? > > no, but an unsigned one is. OK. Anyone know if perl (5.005.3) can handle integers that large? > (note also that 0 is not a valid article number) Knew that already. > Howard> 2) What is the proper way to detect rollover of the article > Howard> numbers? > > Article numbers don't roll over; the server breaks instead :-) > > (Seriously, 2^32 articles is a _lot_, enough for over 10 thousand > years at 1000 articles per day.) We will be sucking down only a very small (nominally 5 groups), hand selected, set of groups with this program. None of the groups has that kind of traffic, so I suppose I can just punt on this issue, but I'm still curious as to the proper action to take should something somewhere ever cause the article numbering to restart way up there rather than at 1. > What _can_ happen is that the server dies and is replaced, or the > article numbers are reset for some other reason. If the article > numbers returned from the server are wildly different from the old > ones, you may want to throw the old info away Anyone know what algorithm the "brand name" news readers use to detect 'wildly different' numbers and what they do to reset the newsrc article number list when this happens? > (after confirming with the user) and reset. Not going to be a 'user' per se. This thing needs to run in the background and not require human intervention unless it get's hopelessly confused, which might be what happens in this case. - howard -- -- Netcom Class of '93, RIP Netcom! <*> hsiegel<->at<->pobox<->dot<->com
Technical Details
Message-ID:
<9r5hmi$9pq$1@news.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!news.panix.com!not-for-mailReferences:
<9r5agg$7ma$1@news.panix.com> <87lmi120ui.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <9r5hmi$9pq$1@news.panix.com> Subject: Re: Article numbering and handling article number rollover Date: Wed, 24 Oct 2001 04:56:50 +0000 From: Howard Siegel <not.interested@nospam.invalid> References: <9r5agg$7ma$1@news.panix.com> <87lmi120ui.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!news.panix.com!not-for-mail Newsgroups: news.software.nntp,news.software.readers Organization: Gallifrey Beach Club Lines: 57 Distribution: inet Reply-To: not.interested@nospam.invalid NNTP-Posting-Host: panix3.panix.com X-Trace: news.panix.com 1003899410 10042 166.84.1.3 (24 Oct 2001 04:56:50 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: 24 Oct 2001 04:56:50 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000)