🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87996

Re: LIST ACTIVE low & high water limits and wraparound

#87996
From: Michael Bäuerle
Date: Tue, 23 Jul 2019 20:57
39 lines
2775 bytes
Doc O'Leary wrote:
> Michael Bäuerle wrote:
> > 
> > The above number 2,147,483,647 is the value of 2^31 - 1
> > (31-bit, or the positive range of a signed 32-bit integer).
> 
> Like most tech savvy people, I’m well aware of that.  It doesn’t change 
> the fact the RFC itself *does not mention that*.

Yes, not literally.

> The internal 
> representation is rightly left as an implementation detail.  I mean, 
> hey, more power to you if you can make a working client/server that 
> just leaves everything in strings.

And it's good that the RFC doesn't forbid exotic implementations.

> > But this is for future standards. If a NNTP server reports VERSION 2
> > protocol, a client is allowed to expect that it gets no larger numbers
> > (as defined above).
> 
> But in lieu of that future standard, there should be an agreed upon 
> behavior and/or workaround for the case of a group that grows to exceed 
> the article limit.  You’re welcome to propose and implement solutions 
> that remain strictly within the current spec.

To avoid a protocol VERSION 3, maybe as extension:
If a server advertises something to define like BIGNUM via CAPABILITIES,
a client that can handle large article numbers can negotiate the limit
with a corresponding command BIGNUM (client limit as parameter).
The server will then clamp to this limit, or its own limit, whichever is
smaller.

The NNTP protocol driver in my client is written in C90 and uses
"unsigned long int" as data type. It would therefore be possible to
offer ULONG_MAX for negotiation.

Technical Details
Message-ID: <AABdN3TTtmIAAAnN.A1.flnews@Server4.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <AABdN3TTtmIAAAnN.A1.flnews@Server4.micha.freeshell.org>
Subject: Re: LIST ACTIVE low & high water limits and wraparound
Date: Tue, 23 Jul 2019 20:57:55 -0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Lines: 37
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net OM1Ag4iQ8z7RiuY7dh5/0wwSE47GHVBr6avbt9o8+MjEMj/F0G
X-Orig-Path: not-for-mail
Cancel-Lock: sha256:41DQTBp0SusIFGxbzeYeuzURgcxxWyatqcS1rf1Hroo= sha1:E+PEfmcpXn9GOSwE97ErgZbsYlI=
Injection-Date: Tue, 23 Jul 2019 20:57:55 -0000
User-Agent: flnews/0.16 (for HP-UX)
X-Received-Bytes: 2706
X-Received-Body-CRC: 1406021288