🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50223

Re: Article numbering on NNTP servers

#50223
From: Bill Cole
Date: Sun, 28 Jan 2001 17:35
55 lines
3397 bytes
In article <ylsnm76q2r.fsf@windlord.stanford.edu>, Russ Allbery 
<rra@stanford.edu> wrote:

>Marcus Moennig <minibbjd@gmx.net> writes:
>
>> This goes on and on through the lifetime of the server, so is there a
>> limit where the numbering starts with one again?
>
>Yes; it's unlikely to be reached any time soon, even in control.cancel,
>however.  But yes, sooner or later there would need to be a flag day that
>will confuse all of the clients that were reading that group.

I'll buy a beer for the first admin to keep a server going long enough 
to really roll a 32-bit article number. I figure that even if it does 
happen someday, it will be at least 6 years off. 

Far more likely events break down into the following unusual cases, in 
high/low count terms:

1. All groups have greatly lowered high and low markers. (server-wide 
renumber, i.e 'this is not the server it was last night')
2. A single group has a slight (relative) drop in high marker. 

It seems to be that this becomes easy to handle: 

If one group shows a low marker drop, assume that the group rolled the 
counter (it SHOULD be a 32-bit integer, but you can't really count on 
that. It may be that the admin hand-reset the group to stick to 6 
decimal digit.)  Treat the group as completely unread.


If every group (3 out of 3 should be a reasonable approximation of 
'every') shows a drop in the low marker, assume that the whole server 
got renumbered (likely the old server is no longer there and your are 
looking at a new one in fact using the old name.)  Treat every group on 
the server as completely unread. 

If the low marker does not drop but the high marker does, it is possible 
that the last article(s) in the group were cancelled or that they were 
lost in a crash of some sort that resulted in 'pruning' back to some 
consistent checkpoint.( I've seen this happen in one oddball server, so 
maybe others are capable of it...)  A group like this is a tough case, 
because you don't know where the damage ended. Maybe 100 articles were 
lost and 80 more have since arrived, so you see a drop of 20 but in fact 
80 are as yet unseen.  it's hard to handle this programmatically. 
Arguably, the ability of a server to behave like this is a bug and a 
violation of the standard, good sense, reasonable client expectations, 
and all that is good and holy.

-- 
Bill Cole
I work for MAPS, but I do not speak for MAPS
This message is the official opinion of the voices in my head. 
Technical Details
Message-ID: <bill-FDDCA6.12351828012001@fireproof.scconsult.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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!141.201.2.63!newshunter!esel!cosy.sbg.ac.at!news.scconsult.com!bill
References: <36916.96891amb@40tude.com> <ylsnm76q2r.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <bill-FDDCA6.12351828012001@fireproof.scconsult.com>
Subject: Re: Article numbering on NNTP servers
Date: Sun, 28 Jan 2001 12:35:18 -0500
From: Bill Cole <bill@scconsult.com>
References: <36916.96891amb@40tude.com> <ylsnm76q2r.fsf@windlord.stanford.edu>
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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!141.201.2.63!newshunter!esel!cosy.sbg.ac.at!news.scconsult.com!bill
Newsgroups: news.software.nntp
Organization: scconsult.com is not organized
User-Agent: MT-NewsWatcher/3.0 (PPC)
NNTP-Posting-Host: news.scconsult.com (fireproof.scconsult.com)
X-Posting-Server: RumorMill 1.3d22
Sender: bill@192.168.254.12
Lines: 54