🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89827

Re: Advertising the MAXARTNUM extension

#89827
From: Julien ÉLIE
Date: Sun, 11 Dec 2022 11:21
77 lines
4087 bytes
Salut Franck,

>> An implementation could even prefer to have MAXARTNUM set to ^64 at 
>> startup and not ^31 (the initial number should not be mandatory - just 
>> a recommendation that in 2022, ^31 is still a good choice for 
>> interoperability).
> 
> Because Russ still have trn users (:-)), I think we MUST keep the 
> "legacy" NNTP int type as default value.

The main point is that 2^31-1 MUST be the default value with NNTP 
Version 2.  We MUST conform to RFC 3977:

    Note that it is likely that the article number limit of 2,147,483,647
    will be increased by a future revision or extension to this
    specification.  While servers MUST NOT send article numbers greater
    than this current limit, client and server developers are advised to
    use internal structures and datatypes capable of handling larger
    values in anticipation of such a change.


> So I will go for :
> 
> Startup : INT32 is initial and "legacy" MAXARTNUM value (2^31-1), 
> otherwise some clients will LIST and receive newsgroups with large 
> numbers (No pointers adjustments).
> 
> C: CAPABILITIES
> S: MAXARTNUM UINT64 (The highest number the server support)
> 
> Then :
> 
> C: MAXARTNUM UINT64 (Or less)
> S: 202 UINT64 (Or less)
> 
> C: CAPABILITIES
> S: *** MAXARTNUM is NOT in the list (Meaning "already set") ***
> 
> C: MAXARTNUM INT32
> S: 502 mutual maximum article number already negotiated and set to UINT64.
> 
> Any thoughts?

We would have:
- Until the MAXARTNUM command is used, CAPABILITIES advertises the 
facility with the highest supported article number;
- Once that command has been successfully used (and has returned the 
negotiated maximum number in the 202 answer), it is no longer advertised 
in CAPABILITIES and returns 502 if sent again;
- The default value is 2^31-1 with VERSION 2 of the NNTP protocol, as 
advertised in CAPABILITIES.

A future specification of Version 3 may change the default value but is 
out of scope for the current initial MAXARTNUM implementation.

By the way, we could advertise in CAPABILITIES both the current value 
and the maximum value => it would answer that point and facilitate the 
migration towards future extensions.

C: CAPABILITIES
S: MAXARTNUM 2147483647 18446744073709551615

for 2^31-1 and 2^64-1

And note "unlimited" with 0 (because the first argument could also one 
day be 0...):

C: CAPABILITIES
S: MAXARTNUM 2147483647 0

-- 
Julien ÉLIE

« N'as-tu jamais fait ces rêves, Neo, qui ont l'air plus vrais que la
   réalité ? Si tu étais incapable de sortir de l'un de ces rêves,
   comment ferais-tu la différence entre le monde du rêve et le monde
   réel ? » (Morpheus, _Matrix_)
Technical Details
Message-ID: <tn4efe$2nf66$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@news.trigofacile.com> <B4AUCrUSfIA@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tn4efe$2nf66$1@news.trigofacile.com>
Subject: Re: Advertising the MAXARTNUM extension
Date: Sun, 11 Dec 2022 12:21:18 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@news.trigofacile.com> <B4AUCrUSfIA@news.spitfire-nntp.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 11 Dec 2022 11:21:18 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="2866374"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Cancel-Lock: sha1:GoQxhrKRF8RjoHnzF4qzUE3hsB4= sha256:TAsJUoi2sGEna46YcVwT1Z1b2kUU1XvvL2O1yF9T118= sha1:YVp6/vFZqz5sr8W4HUW9+Psvwlk= sha256:ZZIS0HODtG+GK6UsE9KOp0wHDqtPoJ/e87S4mJaKj2Q=
In-Reply-To: <B4AUCrUSfIA@news.spitfire-nntp.fr>