Thread View: news.software.nntp
7 messages
7 total messages
Started by Mark
Mon, 28 May 2001 13:23
Article numbering
Author: Mark
Date: Mon, 28 May 2001 13:23
Date: Mon, 28 May 2001 13:23
22 lines
1959 bytes
1959 bytes
Dear people,
I was wondering if anyone could explain an aspect about article numbering to
me.
For a mini NNTP server I am writing, I have a newsfeed that feeds article
numbers in ascending order. My question is, if the newsfeed resets the
article number to 1, how do I tell a news client then that its XOVER list
needs to be reset too? Or will a news reader like, say, Outlook Express,
realize itself that the new numbers are lower than the previous ones, and
purge its own, cached XOVER list itself?
- Mark
System Administrator Asarian-host.org
---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
Re: Article numbering
Author: those who know me have no need o...
Date: Mon, 28 May 2001 14:16
Date: Mon, 28 May 2001 14:16
17 lines
1260 bytes
1260 bytes
<%isQ6.166468$sP6.9100261@news3.aus1.giganews.com> divulged: >if the newsfeed resets the article number to 1, don't do that. >will a news reader like, say, Outlook Express, >realize itself that the new numbers are lower than the previous ones, and >purge its own, cached XOVER list itself? most newsreaders will eat their own young. which is to say that they won't do the right thing when (if) they notice the highwater mark has been lowered. -- okay, have a sig then
Re: Article numbering
Author: The Archiver
Date: Tue, 29 May 2001 06:51
Date: Tue, 29 May 2001 06:51
34 lines
1985 bytes
1985 bytes
"Mark" <admin@asarian-host.org> wrote: >For a mini NNTP server I am writing, I have a newsfeed that feeds article >numbers in ascending order. My question is, if the newsfeed resets the >article number to 1, how do I tell a news client then that its XOVER list >needs to be reset too? Or will a news reader like, say, Outlook Express, >realize itself that the new numbers are lower than the previous ones, and >purge its own, cached XOVER list itself? I assume that you want to offer proper articles to your newsreaders. Create your own article numbering on your 'mini NNTP server'. Make sure that these numbers are always increasing, even after a crash. A lot of newsreader are completely confused if the server is reorganised! If you downlaod article by number from the feed, then verify the Message-ID. After reorganisation at feeder side you will get wrong articles. (Same happens on some servers if you try to download expired articles). I am using download with: article <msgid> This is far more safe than downlaoding by article numbers. Feeder are reorganised from time to time. High- and low watermarks are both decreasing even without a reorganisation. A real good 'sucking feed' is hard to write... HTH -- The Archiver
Re: Article numbering
Author: Mark
Date: Tue, 29 May 2001 10:39
Date: Tue, 29 May 2001 10:39
74 lines
4519 bytes
4519 bytes
"The Archiver" <archiver@i3w.com> wrote in message
news:t5128515302@archiver.winews.net...
> "Mark" <admin@asarian-host.net> wrote:
>
> > For a mini NNTP server I am writing, I have a newsfeed that feeds
> > article numbers in ascending order. My question is, if the newsfeed
> > resets the article number to 1, how do I tell a news client then that
> > its XOVER list needs to be reset too? Or will a news reader like, say,
> > Outlook Express, realize itself that the new numbers are lower than the
> > previous ones, and purge its own, cached XOVER list itself?
>
> I assume that you want to offer proper articles to your newsreaders.
>
> Create your own article numbering on your 'mini NNTP server'. Make sure
> that these numbers are always increasing, even after a crash. A lot of
> newsreader are completely confused if the server is reorganised!
Yes, I have become wise to that. :) In fact, I am writing the mini NNTP
server for the very purpose of serving as a "front-end" server for my
newsfeed, who keeps resetting those articles numbers every so many
weeks--and I am growing tired of that. It messes everything up.
In a proposed new section of RFC 977, I read:
Article numbers MUST lie between 1 and 999999999 inclusive [this allows
one article per second for 31 years]. The client and server SHOULD NOT
use leading zeroes in specifying article numbers. If the server loses
record of the most recent article number in a group, it MUST reset to a
higher article number.
So, I guess I will just keep numberering up, and worry again about
reorganizing the stuff in about 31 years; I can live with that. :)
> If you downlaod article by number from the feed, then verify the
> Message-ID. After reorganisation at feeder side you will get wrong
> articles. (Same happens on some servers if you try to download expired
> articles).
>
> I am using download with: article <msgid> This is far more safe than
> downlaoding by article numbers.
>
> Feeder are reorganised from time to time. High- and low watermarks are
> both decreasing even without a reorganisation.
That is true; the low watermark being reorganized is not such a problem,
methinks (I can just decide whether I want to keep the lower numbers on
spool,) but lowering the high watermark is trickier. I mean, that can occur
even by a client cancellation; a user could cancel his own "last-posted"
article, thus lowering the high watermark.
I guess the best way to realiably add articles to my own feed, is to try and
re-sync with the orginal feed, based on Message-ID (that is, "popping"
Messsage-ID's off my XOVER cache, until I find one that the original feed
still carries, and then sucking articles from the article number belonging
to the next article--with an article-number correction for my own storage,
of course.)
> A real good 'sucking feed' is hard to write...
It is. :)
Thanks for the advice.
- Mark
System Administrator Asarian-host.org
---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
Re: Article numbering
Author: Curt Welch
Date: Tue, 29 May 2001 12:47
Date: Tue, 29 May 2001 12:47
17 lines
1966 bytes
1966 bytes
"Mark" <admin@asarian-host.org> wrote: > That is true; the low watermark being reorganized is not such a problem, > methinks (I can just decide whether I want to keep the lower numbers on > spool,) but lowering the high watermark is trickier. I mean, that can > occur even by a client cancellation; a user could cancel his own > "last-posted" article, thus lowering the high watermark. It shouldn't. If you cancel the last posted article the high watermark should not get lowered. The high watermark should document the last article number used, not the highest article currently in the spool. If you write a server, make sure this doesn't happen. If you write a client, be sure it can deal with that if it does happen. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Article numbering
Author: those who know me have no need o...
Date: Tue, 29 May 2001 16:24
Date: Tue, 29 May 2001 16:24
34 lines
2274 bytes
2274 bytes
<j%KQ6.13540$fb7.1635683@bin1.nnrp.aus1.giganews.com> divulged: >Yes, I have become wise to that. :) In fact, I am writing the mini NNTP >server for the very purpose of serving as a "front-end" server for my >newsfeed, who keeps resetting those articles numbers every so many >weeks--and I am growing tired of that. It messes everything up. might i suggest newscache or nntpcache instead. >> Feeder are reorganised from time to time. High- and low watermarks are >> both decreasing even without a reorganisation. > >That is true; the low watermark being reorganized is not such a problem, >methinks (I can just decide whether I want to keep the lower numbers on >spool,) actually this is just as tricky as when the highwater mark moves, since it indicates a potential change in the article number to article mapping. >I guess the best way to realiably add articles to my own feed, is to try and >re-sync with the orginal feed, based on Message-ID (that is, "popping" >Messsage-ID's off my XOVER cache, until I find one that the original feed >still carries, and then sucking articles from the article number belonging >to the next article--with an article-number correction for my own storage, >of course.) don't make your article number depend on their article numbers -- keep them completely seperate, and don't be tempted to mingle them in any way. -- okay, have a sig then
Re: Article numbering
Author: The Archiver
Date: Thu, 31 May 2001 04:23
Date: Thu, 31 May 2001 04:23
24 lines
1547 bytes
1547 bytes
curt@kcwc.com (Curt Welch) wrote: >> a user could cancel his own >> "last-posted" article, thus lowering the high watermark. > >It shouldn't. If you cancel the last posted article the high watermark >should not get lowered. The high watermark should document the last >article number used, not the highest article currently in the spool. You are right. Unfortunately this happens often - even at major (also pay-) services. So I wanted to share my practical experience. >If you write a server, make sure this doesn't happen. >If you write a client, be sure it can deal with that if it does happen. Good ole net programming wisdom :-) And the truth - really. -- The Archiver
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