🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89814

Re: Advertising the MAXARTNUM extension

#89814
From: Franck
Date: Sun, 11 Dec 2022 05:01
71 lines
3855 bytes
Hello Julien,

> I'll use the ^n notation below, meaning 2^n-1.
> We'll have to discuss whether we should keep it (client<->server or only 
> client->server) or only use numbers.

Since this number is (usually) based on the integer type used by the 
developer, I really don't see the point of accepting anything other than 
the maximum values of the main integer types.

So I'll go for a single, simple syntax, in both directions, like :

MAXARTNUM INT32		=> ^31
MAXARTNUM UINT32	=> ^32
MAXARTNUM INT64		=> ^63
MAXARTNUM UINT64	=> ^64
MAXARTNUM		=> Unlimited.

Away goofy numbers, away very confusing ^N (meaning ^N-1 !).

What is the real benefit of a MAXARTNUM 1234567890?
What is the real benefit of a MAXARTNUM ^35?

> So maybe ^n should not be standardized, but of course could remain 
> "private" for use by the developers of the implementation.

No need to develop a hidden functionality with the previous syntax.

> First scenario
> --------------
> 
> The news server handles up to 2^64-1 articles but, at startup, is 
> configured to show only up to 2^31-1 to clients for interoperability 
> reasons.
> It then advertises in CAPABILITIES:
> MAXARTNUM ^31

MAXARTNUM INT32

> If a news client sends MAXARTNUM ^63, it will then answer 202 with that 
> new mutual maximum and advertise in CAPABILITIES:
> MAXARTNUM ^63

C: MAXARTNUM INT64
S: 202 INT64

CAPABILITIES : MAXARTNUM INT64

> Had the client sent MAXARTNUM ^64 or MAXARTNUM ^128 or MAXARTNUM without 
> any argument (saying it can handle arbitrary numbers), the new mutual 
> maximum advertised would have been:
> MAXARTNUM ^64

MAXARTNUM UINT64

> As far as I am concerned, I prefer the first scenario because it makes 
> it clear what the maximum article number in effect is.
> If the news client is OK with that, it does not have to send MAXARTNUM.
> Otherwise, in the second scenario, it does not know what is the current 
> mutual maximum so it needs sending it in order not to be blocked to 2^31-1.
> 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).

As it seems servers needs to live with old readers, i prefer the initial 
choice set to MAXARTNUM INT32 and, if reader support MAXARTNUM, use it 
to set an integer type.

Have nice day,
Franck
Technical Details
Message-ID: <Cmr6pS8uULc@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
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <Cmr6pS8uULc@news.spitfire-nntp.fr>
Subject: Re: Advertising the MAXARTNUM extension
Date: Sun, 11 Dec 2022 06:01:18 +0100
From: Franck <franck@email.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@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
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Newsgroups: news.software.nntp
Content-Language: fr
In-Reply-To: <tn3245$2mbfk$2@news.trigofacile.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 11 Dec 2022 05:01:18 +0000 (UTC)
Injection-Info: news.spitfire-nntp.fr; posting-host="iB1yeaEo8jS7iUB8RMY-JH6LLjzd2FjLMfu5P0pImPVwc8nK9EmT5-26VD-KDZw15lNx-gXDhhBGzUH9jgcJGg=="; posting-account="rCqVknf9e8UNlR1gIujOk7bs9rtlMk3xc-rvuNMzhqM="; logging-data="C6395641e390c65f9"; mail-complaints-to="abuse@spitfire-nntp.fr"
Cancel-Lock: sha1:7qV6fyyvqnqAQrvUE9NwlwbEFpc= sha256:4sIvvuF2anXo3JMSyvncZLEc8mQs4yyA24mZRGtFI7o= sha1:JGn2lBq1NMbEoMzf3jA+5+ji1r4= sha256:0gvRYJORUzGka/gCY/f64KSJmvyi3kG7ax51++47wt4=
Organization: Home of Spitfire News Server, Montpellier (France).