🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by David A. Bartizal Sun, 23 Mar 1997 00:00
Help With Article Numbers
#16185
Author: David A. Bartizal
Date: Sun, 23 Mar 1997 00:00
28 lines
1394 bytes
Hi,

WARNING: DUMB QUESTIONS FOLLOW!!!!!!!!!

I am working on a little programming project for a custom NNTP client
that is being integrated into some legacy code.

I am using the article number for particular news groups in order to
maintain a "high-water mark"  for the last article retreived from a
server. (Thanks to the people from this group who gave me this
method.)

My question is this. Does the article number reach some max and then
wrap around?  If and when this happens, are the other articles
re-numbered so as to keep the first article with a number lower than
the last article? What is the max or does it depend on software?

I looked through the skimpy documentation I have managed to scarf off
the net, but can't seem to find the answer to what I am sure is dumb
question.

Many thanks in advance for any info that someone may be able to give
me!

-Dave

Re: Help With Article Numbers
#16189
Author: Per Hedeland
Date: Sun, 23 Mar 1997 00:00
30 lines
1717 bytes
In article <yy3vi6ipx97.fsf@velo.pp.vix.com> James Brister
<brister@vix.com> writes:
>dabart1@pressenter.com (David A. Bartizal) writes:
>
>> My question is this. Does the article number reach some max and then
>> wrap around?
>
>In INN the max article number is 2^32 and then it wraps around to zero.

Have you tested that?:-) (I bet it'll croak due to the high article
number becoming lower than the low.:-) Hopefully we'll have come up with
a better scheme before any group reaches article 2^32 - or even 2^31-1,
where some newsreaders are likely to croak - that's one article per
second for some 68 years...

> The
>admin may reset things earlier than that if local news readers expect max
>article numbers to be smaller.

He/she may, but sensible admins don't, as few if any readers can deal
intelligently with it (nor can INN, really) - at best they'll consider
all articles unread when they detect this. Readers that can't go to at
least 2^31-1 are likely to be mostly extinct, as it was years since 2^16
was enough.

--Per Hedeland
per@erix.ericsson.se

Re: Help With Article Numbers
#16192
Author: James Brister
Date: Sun, 23 Mar 1997 00:00
16 lines
1042 bytes
dabart1@pressenter.com (David A. Bartizal) writes:

> My question is this. Does the article number reach some max and then
> wrap around?

In INN the max article number is 2^32 and then it wraps around to zero. The
admin may reset things earlier than that if local news readers expect max
article numbers to be smaller.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: Help With Article Numbers
#16196
Author: James Brister
Date: Sun, 23 Mar 1997 00:00
23 lines
1310 bytes
I said:

> dabart1@pressenter.com (David A. Bartizal) writes:
> 
> > My question is this. Does the article number reach some max and then
> > wrap around?
> 
> In INN the max article number is 2^32 and then it wraps around to zero. The
> admin may reset things earlier than that if local news readers expect max
> article numbers to be smaller.

To be perfectly correct, the max article number is ULONG_MAX, which on most
machines is 2^32, but on a 64 bit machine is 2^64. It'll be a while before
that number range wraps around, even if all articles were filed into a
single group

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: Help With Article Numbers
#16218
Author: Ian Stirling
Date: Mon, 24 Mar 1997 00:00
37 lines
2006 bytes
James Brister (brister@vix.com) wrote:
: I said:
:
: > dabart1@pressenter.com (David A. Bartizal) writes:
: >
: > > My question is this. Does the article number reach some max and then
: > > wrap around?
: >
: > In INN the max article number is 2^32 and then it wraps around to zero. The
: > admin may reset things earlier than that if local news readers expect max
: > article numbers to be smaller.
:
: To be perfectly correct, the max article number is ULONG_MAX, which on most
: machines is 2^32, but on a 64 bit machine is 2^64. It'll be a while before
: that number range wraps around, even if all articles were filed into a
: single group

Hmm, I forget, what's the current news-volume doubling time :)

Wonder when nntp will finally die, as the major transport mechanism.
I suppose pretty soon, (10 years, 20?), You'll have at least a billion
people connected to the net, in some form, which could easily
generate a couple of billion messages a day.

2.2 terabyte history file, if keeping for 14 days.
Of course, on the upside, this file would likely fit inside you'r
watches memory :)

--
Ian Stirling.                     Currently designing a new PDA, see homepage.
Homepage:                         http://www.mauve.demon.co.uk/
Two fish in a tank: one says to the other, do you know how to drive this
thing?


Re: Help With Article Numbers
#16248
Author: Chrisy Luke
Date: Mon, 24 Mar 1997 00:00
30 lines
1867 bytes
On 23 Mar 1997 23:13:34 GMT, the Killer Plum Squad forced
per@erix.ericsson.se (Per Hedeland) to write:

>Have you tested that?:-) (I bet it'll croak due to the high article
>number becoming lower than the low.:-) Hopefully we'll have come up with
>a better scheme before any group reaches article 2^32 - or even 2^31-1,
>where some newsreaders are likely to croak - that's one article per
>second for some 68 years...

It's being defined in the current IETF NNTP drafts. The mechansism
that seems favourite is a defined maximum, with the number space
divided into 4 windows which slide as the count enters it. IMO, it's a
little contrived when simple number wrapping would do it so much
simpler. ;-)

>He/she may, but sensible admins don't, as few if any readers can deal
>intelligently with it (nor can INN, really) - at best they'll consider
>all articles unread when they detect this. 

Good ones cope, bad ones have workarounds.

Chris.

== chrisy@easynet.net, chrisy@flirble.org, chrisy@etsiig.uniovi.es
== Newsmaster and Senior Systems Developer for Easynet Group Plc.
== I recently saw a Flirble, in the bushes on Regents Park. It
== frowned at me and said "If it were Wimbledon you wouldn't stare!"

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