Thread View: news.software.nntp
7 messages
7 total messages
Started by bobyetman
Thu, 20 Mar 2003 00:51
wraparound in GROUP command?
Author: bobyetman
Date: Thu, 20 Mar 2003 00:51
Date: Thu, 20 Mar 2003 00:51
12 lines
1926 bytes
1926 bytes
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? -- bobyetman@comcast.net (Robert A. Yetman)
Re: wraparound in GROUP command?
Author: Russ Allbery
Date: Thu, 20 Mar 2003 02:16
Date: Thu, 20 Mar 2003 02:16
17 lines
1698 bytes
1698 bytes
bobyetman <bobyetman@comcast.net> writes:
> 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?
There is a high-water mark. There is no wrap-around capability. The
server has to have a flag day and reset the article number if we ever hit
the upper limit on the article number.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: wraparound in GROUP command?
Author: Juergen Helbing
Date: Thu, 20 Mar 2003 06:36
Date: Thu, 20 Mar 2003 06:36
24 lines
1396 bytes
1396 bytes
bobyetman@comcast.net wrote: >But, as a practical matter >does it ever happen with Inn/DNEWS/CNews or other software? The highest number I've personally ever seen was about 45.000.000 as a high watermark in control.cancel - the newsgroup with the most articles. With > 100.000 msgs per day a 31 bit value (2e9) would be good for > 20.000 days, approx. 50 years. In a practical matter a news-server does not live long enough to reach the limit. The _practical_ matter of the low- and high-watermark is, that reorgansiation, repair and server-farms are delivering _falling_ high- and low-watermarks which must be detected and handled properly. HTH -- Juergen
Re: wraparound in GROUP command?
Author: Andrew Gierth
Date: Thu, 20 Mar 2003 07:09
Date: Thu, 20 Mar 2003 07:09
21 lines
1883 bytes
1883 bytes
>>>>> "bobyetman" == bobyetman <bobyetman@comcast.net> writes: bobyetman> I'm working on a project of mine that talks to NNTP bobyetman> servers. I was looking at the GROUP command for getting bobyetman> the article numbers, when a thought hit me. Is there an bobyetman> upper limit to the high-water mark that would cause a wrap bobyetman> around in the numbers? Or does the high water mark just bobyetman> keep going higher and higher? article numbers are limited to 2^32-1 (4 billion plus a few), and if they ever actually get that high, the universe ends and has to be replaced by something even more bizarrely inexplicable. (Though having said that, the unidata.* people seem to be doing their damndest to get there, with well over 400,000 arts/day in a single group; at that rate, it'll only be about 30 years before they reach the limit.) -- Andrew.
Re: wraparound in GROUP command?
Author: bobyetman
Date: Thu, 20 Mar 2003 20:47
Date: Thu, 20 Mar 2003 20:47
5 lines
1390 bytes
1390 bytes
Thanks for the info. Makes my life easier..... -- bobyetman@comcast.net (Robert A. Yetman)
Re: wraparound in GROUP command?
Author: 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/
Re: wraparound in GROUP command?
Author: Andrew - Supernews
Date: Fri, 21 Mar 2003 00:46
Date: Fri, 21 Mar 2003 00:46
22 lines
1981 bytes
1981 bytes
In article <20030320172052.689$sT@newsreader.com>, Curt Welch wrote: [unexpected renumbers] > 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. a common reason for number changes, of course, is when a provider switches news server completely - either from their own one to an outsource, or from one outsource to another, or from an outsource back to an in-house server. In our experience providers almost never bother to warn users in such cases, even when specifically asked to. This means, of course, that this is a problem that can't really be solved well on the server side. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads