Article View: news.software.nntp
Article #89812Re: Spitfire News Server
From: Julien ÉLIE
Date: Sat, 10 Dec 2022 22:52
Date: Sat, 10 Dec 2022 22:52
74 lines
3845 bytes
3845 bytes
Salut Franck,
>> If a newsgroup has 2^40 articles, the estimated article count is
>> 2^31-1. The articles below 2^31-1 are available, and those above
>> return "401 MAXARTNUM" if the MAXARTNUM has not been used. And if
>> MAXARTNUM has already been used with 2^31-1, I think the easiest thing
>> is to go on sending 401.
>
> It's coded like that execpt 401 is "401 maximum article number reached".
>
> As it is often dispayed to user, we can set it something more explicit
> like : 401 maximum article number reached, use MAXARTNUM for next article.
You can't do that for a 401 answer.
You really need:
401 MAXARTNUM
From RFC 3977:
401: The client must change the state of the connection in some other
manner. The first argument of the response MUST be the capability
label of the facility that provides the necessary mechanism
initial-response-line =
initial-response-content [SP trailing-comment] CRLF
where initial-response-content can be:
response-401-content = "401" SP capability-label
So, if you want, you could answer something like:
401 MAXARTNUM capability needed as the maximum article number has been
reached
> Once used, MAXARTNUM never change during all the session and 202 with
> the same value is sent.
I think 502 could be better (like what is done if you try a second
STARTTLS, AUTHINFO, COMPRESS..).
Otherwise, it may be surprising with:
MAXARTNUM 18446744073709551615
202 18446744073709551615
MAXARTNUM 2147483647
202 18446744073709551615
Seems like the following situation is better:
MAXARTNUM 18446744073709551615
202 18446744073709551615
MAXARTNUM 2147483647
502 Mutual maximum article number already negotiated
(And CAPABILITIES shows that mutual number.)
>> It should be a syntax error (501) if < ^31 and recognized after ^31.
>
> Coded like that. And also syntax error if > ^63.
It should normally not be a syntax error if > ^63.
The mutual maximum number will just be 2^63-1.
--
Julien ÉLIE
« Il y a deux sortes de justice : vous avez l'avocat qui connaît bien la
loi, et l'avocat qui connaît bien le juge ! » (Coluche)
Technical Details
Message-ID:
<tn32k5$2mbfl$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:
<AMTKjekiCz4@news.spitfire-nntp.fr> <tmofb3$2f7n5$1@news.trigofacile.com> <Ab0C6Nre0M8@news.spitfire-nntp.fr> <1670435596.bystand@zzo38computer.org> <87sfhrf58x.fsf@hope.eyrie.org> <tmr1r3$2h0ef$1@news.trigofacile.com> <C4Eojh6GRws@news.spitfire-nntp.fr> <CYplN4VH1DY@news.spitfire-nntp.fr> <tmte11$2io74$2@news.trigofacile.com> <DTbamtyLGKY@news.spitfire-nntp.fr> <tmvro2$2kffq$1@news.trigofacile.com> <BDAxMVcy+i4@news.spitfire-nntp.fr>Show Full Headers
Complete Article Headers
Message-ID: <tn32k5$2mbfl$1@news.trigofacile.com> Subject: Re: Spitfire News Server Date: Sat, 10 Dec 2022 23:52:53 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <AMTKjekiCz4@news.spitfire-nntp.fr> <tmofb3$2f7n5$1@news.trigofacile.com> <Ab0C6Nre0M8@news.spitfire-nntp.fr> <1670435596.bystand@zzo38computer.org> <87sfhrf58x.fsf@hope.eyrie.org> <tmr1r3$2h0ef$1@news.trigofacile.com> <C4Eojh6GRws@news.spitfire-nntp.fr> <CYplN4VH1DY@news.spitfire-nntp.fr> <tmte11$2io74$2@news.trigofacile.com> <DTbamtyLGKY@news.spitfire-nntp.fr> <tmvro2$2kffq$1@news.trigofacile.com> <BDAxMVcy+i4@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:52:53 -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="2829813"; 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:YAq5m+pCbT+wyAVcVM2l+qVgSes= sha256:gGxNrKl8n7CIjgJuLrGG/Kfjg/mPoMQQqS8S868Tldc= sha1:l2J5xbYpczgCIn2QjD3xCnBDJUI= sha256:Mo94wAVF00rw8Gogwo0uEVxlu5m7loLIlbTbztVUNys= In-Reply-To: <BDAxMVcy+i4@news.spitfire-nntp.fr>