Article View: news.software.nntp
Article #89843Re: MAXARTNUM extension
From: Julien ÉLIE
Date: Tue, 13 Dec 2022 22:30
Date: Tue, 13 Dec 2022 22:30
117 lines
5961 bytes
5961 bytes
Bonsoir Franck, >> the maximum (MAXARTNUM-First+1) it could be a ratio of it as you have >> the real count on the whole group: >> ceil((MAXARTNUM-First+1)*(Real count)/(High-First+1)) > > Call it F2 > [...] > So, it seems F2 is a better choice except in the case F2 < F1. > I added this condition. Seems good. At least the estimate will be better. >>> Article number set to "0", all newsgroup > MAXARTNUM are set to 0 >> OK that's fine. > > As the exact form of an <article-locator> is implementation-specific, > does it make more sense to set this value to MAXARTNUM? > > Xref: dev.spitfire-nntp.fr local.test.maxartnum:MAXARTNUM The drawback I see with setting <article-locator> to MAXARTNUM is that you'll end up having several articles with the same non-zero article number, which should normally not occur inside a given newsgroup (each article has a unique non-null article number). That's why I would tend to prefer 0. If anyone has another point of view about it, please tell us! I have a bit advanced in writing detailed specifications for MAXARTNUM. I hope to send the first draft to read this week-end. Meanwhile, here is what I have came up with as for that header field. I believe it is the most problematic point to discuss in the whole MAXARTNUM specification. Should we really enforce something about Xref, and what exactly? Handling the Xref Header Field ------------------------------ The Xref header field that can be present in the article headers or overview data traditionally contains article numbers (as <article-locator> in Section 3.2.14 of RFC 5536). Implementations which use the traditional form required by RFC 3977 SHOULD set <article-locator> to 0 (zero) in case <article-locator> would otherwise be greater than the maximum article number negotiated. This recommendation is done in conformance with Section 6 of RFC 3977 which already allows the value 0 (zero) in the NNTP protocol to replace an article number in some special situation. It means that when a news client uses the ARTICLE, HDR, HEAD, OVER, or XPAT commands with a Message-ID as argument, a compliant news server SHOULD ensure that no article numbers beyond the maximum article number negotiated are present in the Xref header fields. To achieve that, the news server acting as a serving agent (Section 3.7 of RFC 5537) MAY alter or delete such Xref header fields. In all cases, it MUST ensure overview data remains coherent, especially the value of the :bytes metadata item (Section 8.1.1 of RFC 3977). ** Do we really need to have that requirement? In fact, we also have an issue with the same NNTP commands with an article number as argument. (I've still not written text about it.) Suppose an article is crossposted in group1, with article number 1, and group2, with article number 2^40... A large number will be present in the Xref header field. It then means that the news server always has to check the contents of the Xref header field and do an appropriate change if needed. It seems overkill and time-consuming! I am unsure we want to add that bargain to all compliant implementations. Is it sure some news clients may break on invalid Xref header fields? (I am under the impression that client implementations are robust to the variety of invalid headers there are in the wide, but I may be wrong...) At least, I've checked trn source code (bits.c). It parses the number after ":" in Xref with atol(), so it will get at most INT_MAX and normally won't crash. (It should of course be tested; that's just an assumption.) Any thoughts about how to deal with Xref in the MAXARTNUM extension? Should we just say "MAY set"/"MAY ensure" instead of "SHOULD set"/"SHOULD ensure"? Or keep SHOULD so that implementations could be conditionally compliant if that SHOULD is not honoured? We can imagine that implementations don't do any checks when they know they do not carry any newsgroup with large article numbers, and begin doing such checks and alterations otherwise. >> And naturally, the argument 0 would not be a syntax error (contrary to >> other numbers < 2^31-1). And not giving an argument would then be a >> syntax error (501 response code). > > Done but to be sure : > > C: MAXARTNUM 0 > S: 202 18446744073709551616 is our mutual maximum article number. <= The > maximum the server can handle. Yes. -- Julien ÉLIE « Il faut mépriser l'argent, surtout la petite monnaie. »
Technical Details
Message-ID:
<tnaueg$2rcn3$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:
<D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <tn88mm$2pnad$1@news.trigofacile.com> <A+JThm7d54c@news.spitfire-nntp.fr>Show Full Headers
Complete Article Headers
Message-ID: <tnaueg$2rcn3$1@news.trigofacile.com> Subject: Re: MAXARTNUM extension Date: Tue, 13 Dec 2022 23:30:40 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <tn88mm$2pnad$1@news.trigofacile.com> <A+JThm7d54c@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: Tue, 13 Dec 2022 22:30:40 -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="2994915"; 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:WPRCGhtZNtsTtQuFjXQ+mabtE38= sha256:1nANUYhT9IVuSCe9DEUeZYB5A8M5lg4t3HAkX9Skfug= sha1:lHkDGiHg0KN3kuSOMiGDYaY3alU= sha256:ztwbmBvWACXQ91+k2S8YfKswZGgV71bNaA5z55YSyDQ= In-Reply-To: <A+JThm7d54c@news.spitfire-nntp.fr>