Article View: news.software.nntp
Article #64470Re: wraparound in GROUP command?
From: Curt Welch
Date: Thu, 20 Mar 2003 22:20
Date: Thu, 20 Mar 2003 22:20
37 lines
3029 bytes
3029 bytes
bobyetman@comcast.net wrote: > I'm working on a project of mine that talks to NNTP servers. I was > looking at the GROUP command for getting the article numbers, when a > thought hit me. Is there an upper limit to the high-water mark that > would cause a wrap around in the numbers? Or does the high water mark > just keep going higher and higher? > > I checked both RFC977 & draft-ietf-nntpext-base-17, and if I read them > correctly there is no capability for wrap-around in the command. But, > as a practical matter does it ever happen with Inn/DNEWS/CNews or other > software? Another point to keep in mind when writting a client is that you need to deal with the case of a news server reseting it's article numbers. If the article range goes from 100000-101000 one day, to 1000-2000 the next, your software needs to recognize that the numbers have been reset and that all articles in the group might be "new" articles. What you don't want to do (and which too many news clients do), is to consider all the articles "old" until the high water mark gets back above 101000. This is a common problem because news servers will sometimes (either by accident or by poor design in a upgrade) loose there active file and have the article numbers change like that. Likewise, it can happen in the other direction as well, it may jump ahead by some huge amount and you don't want your software trying to fetch 1,000,000 aticles when both the high and low water marks jump up by that amount. And, if a group ever does hit the 2^32 limit, it will get reset like that. I've been meaning to add code to my server to make it do that automatically because I've got some groups that grow faster than "normal" groups and will in a few years here hit the 2^32 limit and I don't want to have to reset them by hand after problems show up... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030320172052.689$sT@newsreader.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<b5b39o$1au$1@localhost.localdomain>Show Full Headers
Complete Article Headers
Message-ID: <20030320172052.689$sT@newsreader.com>
Subject: Re: wraparound in GROUP command?
Date: Thu, 20 Mar 2003 22:20:52 +0000
From: curt@kcwc.com (Curt Welch)
References: <b5b39o$1au$1@localhost.localdomain>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com +_GPRiJ0f3WAMYUkOu9Be3Qvr-/l7nG,PsLF@syeGCQZ8DOW.9
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 36