Article View: news.software.nntp
Article #89872Re: Proposal specifications for MAXARTNUM
From: Julien ÉLIE
Date: Wed, 21 Dec 2022 20:03
Date: Wed, 21 Dec 2022 20:03
156 lines
8133 bytes
8133 bytes
Hi Richard,
>> It is RECOMMENDED that server implementations permit configuring the
>> maximum article number implicitly set at the start of an NNTP session,
>> whose default MUST be 2,147,483,647 when version 2 of NNTP is
>> advertised in CAPABILITIES (Section 3.3.2 of [RFC3977]). The default
>> value MAY be different in future versions of NNTP. This implicit
>> maximum article number MAY be global to the news server or
>> configurable at a finer level. For instance, the maximum article
>> number could be implicitly set to 18,446,744,073,709,551,615 (2^64-1)
>> for certain users either at the start of the NNTP session or after the
>> use of a mechanism identifying them (e.g. authentication with
>> AUTHINFO). Configuring a value greater than this default value SHOULD
>> be done only for users known to run a news client capable of handling
>> article numbers up to that configured value.
>
> This paragraph seems to add scope for incompatibility between servers
> and clients without any clear benefit.
I propose that paragraph because there's a need not to break existing
implementations capable of handling 64-bit article numbers (both servers
and clients).
If a server implements MAXARTNUM, a client which still has not would
suddenly be no longer able to participate in newsgroups where he
previously could!
So here's the need I wish to deal with. In the same way MAXARTNUM is
designed not to break existing legacy 32-bit implementations, it
shouldn't break existing 64-bit implementations which went ahead and are
using large article numbers.
I came up with that idea formulated in the above paragraph. Note that a
server that only implements a global parameter for the initial maximum
article number (set to 2^31-1) is compliant!
Do you happen to have another better solution for that need?
>> A server supporting the MAXARTNUM command as defined in this document
>> will advertise the "MAXARTNUM" capability label in response to the
>> CAPABILITIES command (Section 5.2 of [RFC3977]). However, this
>> capability MUST NOT be advertised once the MAXARTNUM command has
>> successfully been executed.
>
> Why not? Seems like an entirely unnecessary restriction on the server.
The problem I see in going on advertising MAXARTNUM is CAPABILITIES is
that it may be confusing.
The server could advertise "MAXARTNUM N" whereas a value different than
N has been negotiated.
And usually, after the use of commands like AUTHINFO, COMPRESS, STARTTLS
which change something in the connection, they are no longer advertised
in CAPABILITIES.
Do you see a drawback in no longer advertising it either?
>> This number MUST NOT have leading zeroes, and MUST NOT be lower than
>> 2,147,483,647 with the exception that a value of 0 (zero) is valid,
>> which indicates that the server can handle article numbers of any
>> size.
>
> I don’t think the special case for is 0 is necessary since there is no
> such server: the 497-octet limit provides an upper bound even for
> servers that don’t limit their article numbers to (for example) a
> uint64_t. They can send a value of 2^256-1 or something and be very
> comfortable that the limit will never be reached in reality.
>
> This applies to both the capabality and the command.
Ah, indeed that's a good point for 0 as there is an upper bound for the
length of arguments. I may as well remove that special case of 0 then;
it will simplify the extension without a special case to handle.
If someone thinks 0 should really be kept, please tell!
Nonetheless, your remark about such large article numbers makes me think
about something I overlooked...
From RFC 3977:
Command lines MUST NOT exceed
512 octets, which includes the terminating CRLF pair. The arguments
MUST NOT exceed 497 octets. A server MAY relax these limits for
commands defined in an extension.
The initial line of the response MUST NOT exceed
512 octets, which includes the response code and the terminating CRLF
pair; an extension MAY specify a greater maximum for commands that it
defines, but not for any other command.
So there is a problem for instance with "OVER N-M" where N and M are
compounded of 497 digits.
And also in existing responses, as we may have a large article number
followed by a Message-ID up to 250 characters itself!
And even in GROUP responses, there may be 3 large article numbers
followed by a newsgroup name. (Is there an upper bound for the length
of a newsgroup name? I do not manage to find it in RFC 3977 or 5536.)
Something should definitively be said about that in the MAXARTNUM
extension...
Should we then restrict the maximum length of article numbers to a
precise number, given these requirements?
For version 2 of NNTP, we may for instance take 40 bytes, which is
enough for 2^128 articles. And just say a future version may relax the
current limits in the length of command lines and initial response lines.
Do you see any other idea to deal with that issue?
>> Additionally, the client MUST NOT issue a MODE READER command after a
>> successful negotiation of the mutual maximum article number with the
>> MAXARTNUM command, and a server MUST NOT advertise the MODE-READER
>> capability.
>
> The former I can see, but why forbid advertizing MODE-READER after
> MAXARTNUM has been negotiated?
When MODE-READER is advertised, we're in the case of a mode-switching
news server. The same way AUTHINFO, COMPRESS, or STARTTLS forbid
advertizing MODE-READER after a successful use of the command, MAXARTNUM
also has to. Negotiated states are not shared between transit and
reading facilities of mode-switching news servers.
>> A server MUST NOT return the MAXARTNUM capability label in response to
>> a CAPABILITIES command received after a successful use of the
>> MAXARTNUM command, and a server MUST reply with a 502 response code if
>> a syntactically valid MAXARTNUM command is received after an already
>> successful use of this command.
>
> Why?
From previous discussions, it seemed weird that a news client used
MAXARTNUM twice (or more) with a possible different article number
asked. That's the reason of that paragraph.
I agree it is not mandatory; but without it, it would mean that news
servers have to cope with several changes in the mutual article number,
and possibly answer several times "401 MAXARTNUM", and then again a
re-negotiation of MAXARTNUM should occur.
That seems complicated. Whence that paragraph to forbid that.
Thanks for your remarks and having taken the time to read the proposal.
--
Julien ÉLIE
« Cette obscure clarté qui tombe des étoiles. » (Pierre Corneille)
Technical Details
Message-ID:
<tnvor4$38u1h$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-mailReferences:
<tnqm14$35bas$1@news.trigofacile.com> <wwvwn6lggvf.fsf@LkoBDZeT.terraraq.uk>Show Full Headers
Complete Article Headers
Message-ID: <tnvor4$38u1h$1@news.trigofacile.com> Subject: Re: Proposal specifications for MAXARTNUM Date: Wed, 21 Dec 2022 21:03:48 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <tnqm14$35bas$1@news.trigofacile.com> <wwvwn6lggvf.fsf@LkoBDZeT.terraraq.uk> 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: Wed, 21 Dec 2022 20:03:48 -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="3438641"; 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.6.1 Cancel-Lock: sha1:9vuhiZRIQ2DhD9T0FFKcNF0Lnrk= sha256:QovxB68MtfFW1Ru1rlJyo5EZewdHl2CDkJc/3XRhyRU= sha1:iv/5gixc92tfccFRcbV/4zDmxMo= sha256:EgbhWE5daM+XE+TOO9KgqDOk999EJqPNAqicG1YK0eU= In-Reply-To: <wwvwn6lggvf.fsf@LkoBDZeT.terraraq.uk>