🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89811

Re: Advertising the MAXARTNUM extension

#89811
From: Julien ÉLIE
Date: Sat, 10 Dec 2022 22:44
80 lines
4000 bytes
Hi all,

A question about what would be better to advertise in CAPABILITIES for 
MAXARTNUM.

Do you think it should reflect the current maximum article number that 
the news server will provide, or the maximum article number it can 
handle when negotiating it?

I would tend to prefer the first one, though it is not what we have 
discussed until now.


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.
I have mixed feelings about it.  It is true that it is easier to use it 
when debugging but... we're not many to do such NNTP debugging by hand, 
and if need be, we can have the commands in a text file and copy/paste 
them when needed.
Debugging some extensions like SASL isn't straight-forward anyway, and 
needs special commands.
So maybe ^n should not be standardized, but of course could remain 
"private" for use by the developers of the implementation.



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

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

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



Second scenario
---------------

Same hypothesis but the news server advertises in CAPABILITIES its 
maximum article number handled:
MAXARTNUM ^64

If a news client sends MAXARTNUM ^63, it will then answer 202 with that 
new mutual maximum and then no longer advertise MAXARTNUM in 
CAPABILITIES (or it could still advertise "MAXARTNUM ^64" but there's no 
point in doing that).




Any thoughts?

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).

-- 
Julien ÉLIE

« La perfection est atteinte non pas lorsqu'il n'y a plus rien à
   ajouter, mais lorsqu'il n'y a plus rien à retirer. » (Saint-Exupéry)
Technical Details
Message-ID: <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
References: <D9E85xtkDAg@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tn3245$2mbfk$2@news.trigofacile.com>
Subject: Re: Advertising the MAXARTNUM extension
Date: Sat, 10 Dec 2022 23:44:20 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <D9E85xtkDAg@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: Sat, 10 Dec 2022 22:44:21 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2829812"; 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:jhTkagnWFSNmPf3YNYcHVzOoXU0= sha256:q2swgEnlUDckoy6I05C0DRscPm+EHEATEZ/y2v65644= sha1:ZogU6oX85mTYe+BV1uNcQdcuH9Q= sha256:GrV9QrHVBDuagFZwsR8TsKFbkxXNpqxrnYpriHD6knc=
In-Reply-To: <D9E85xtkDAg@news.spitfire-nntp.fr>