Article View: news.software.nntp
Article #88005Re: LIST ACTIVE low & high water limits and wraparound
From: Julien ÉLIE
Date: Fri, 26 Jul 2019 18:08
Date: Fri, 26 Jul 2019 18:08
169 lines
7750 bytes
7750 bytes
Hi Frank,
>> You could also keep the n latest articles of the newsgroup, renumber
>> them from 1 to n, regenerate overview data, and set the high water mark
>> to n.
>
> But doing so would confuse most newsreaders, because they keep the
> article numbers (or ranges) in their .newsrc (like) files. Renumbering
> would cause newsreaders to see already read articles again, or, worse,
> not see new articles, because their article numbers are in the
> newsreader's already-read range/list.
>
> AFAIK, renumbering is Just Not Done, at least not on any decent (text)
> newsserver.
Sure. It would be only when you have no other choice (impossibility to go beyond 2^31 as article number, and rename the newsgroup).
FWIW, Ken Murchison once suggested a LARGEGROUP extension:
https://lists.eyrie.org/pipermail/ietf-nntp/2005-July/005720.html
*************************************************
- Servers which support 64-bit (large) article counters advertise a
capability such as 'LARGEGROUP' (or some better named capability).
- Servers always hide (411 response for [LIST]GROUP, ommission from LIST
ACTIVE response) groups which have exceeded the 32-bit article count
from clients until the client tells the server that it can support such
groups.
- A client tells the server that it supports large groups by using the
new keyword 'LARGEGROUP' as an argument to the CAPABILITY command.
- The server can then use the existing response codes for the
[LIST]GROUP and LIST ACTIVE commands.
*************************************************
And Clive Feather a BIGNUM extension:
https://lists.eyrie.org/pipermail/ietf-nntp/2005-July/005802.html
*************************************************
Firstly, let us learn from the past and *not* call this - or make it - a
"64 bit" facility. Hence the new subject line.
For the purposes of this message, I call the proposed extension BIGNUM.
Let's start by defining a bit of notation: {MC} is the largest article
number that the client can cope with, {MS} is the largest article number
that the server can cope with, and {MA} is the largest article number
currently in use in the server. Draft 27 requires that {MC} and {MS} both
be no less than, and that {MA} be no greater than, 4294967295. {MU} is the
minimum of {MC} and {MS}.
Clients normally get article numbers from the server, rather than making
them up out of whole cloth, so that direction is less of a problem. If it
does send a number greater than {MS}, it has violated a MUST and the server
can respond appropriately (probably a 501 or 400).
So, as I see it, we have three problems to address:
(1) How does a server tell a client that it has article numbers greater
than 2^32-1 (or 2^31-1) sitting around?
(2) How does a client tell a server that it can cope with article numbers
greater than 2^32-1?
(3) What does a server do if it has an article number greater than the
client can cope with?
Question 1 is the easiest. In the CAPABILITIES output, the server includes
the label BIGNUM with argument {MS}:
[C] CAPABILITIES
[S] 101 Capability list:
[S] VERSION 2
[S] READER
[S] NEWNEWS
[S] LIST ACTIVE NEWSGROUPS
[S] BIGNUM 9876543210987654321
[S] .
In the absence of this capability, the client assumes {MS} is 4294967295.
Question 2 is also pretty easy. {MC} is sent as a command and {MU} returned
in the response:
[C] BIGNUM 314159265358979323
[S] 202 314159265358979323 is our mutual minimum
[C] BIGNUM 31415926535897932386468
[S] 202 9876543210987654321 is our mutual minimum
Until this command is used, the server assumes {MC} is 4294967295.
We're now left with question 3. The server provides article numbers in the
following places:
211 response from GROUP/LISTGROUP
LIST ACTIVE 215 response content
NEWGROUPS 231 response content
22x response from ARTICLE/HEAD/BODY/STAT/LAST/NEXT
HDR 225 response content
LISTGROUP 211 response content
OVER 224 response content
The division is for a reason. The first three cases report the high water
mark of a newsgroup, and are therefore the first place the problem will
appear. The other four cases are less problematic because a number greater
than {MC} can only appear in four situations I can think of:
- GROUP or LISTGROUP was used with a group whose high water mark is greater
than {MC};
- the high water mark on entry was {MC} but a further article appeared
later;
- the server is sending an article number, rather than 0, when the client
specified a message-ID;
- the client used an article number greater than {MC} as an argument.
The third of these can simply be forbidden, and the fourth is already a
MUST NOT. The other two can be addressed simply by using the generic
response
401 BIGNUM
(possibly with a second argument giving the maximum article number in the
group).
So now we're down to one basic situation: how to report a group with large
article numbers in GROUP, LISTGROUP, LIST ACTIVE, and NEWGROUPS. Here is
what I would propose:
* If the client has not used the BIGNUM command, the server acts as if
the high water mark is 4294967295, except that NEXT fails with 401 BIGNUM
instead of 421 ("no next article").
* If the client *has* used the BIGNUM command, article numbers greater than
the current {MC} are prefixed with a tag (e.g. a plus sign) to indicate
that they are too big.
Thoughts?
----
A couple of bits of syntactic sugar.
I could live with the BIGNUM command *also* being permitted as an argument
to CAPABILITIES:
[C] CAPABILITIES BIGNUM 314159265358979323
though I don't see it as a significant need.
I could also live with a notation like "^31" being allowed, in both
directions, as a synonym for 2 to that power minus 1; that is:
BIGNUM ^40
is equivalent (if my calculator isn't lying) to:
BIGNUM 1099511627775
though, again, it isn't a major issue.
*************************************************
--
Julien ÉLIE
« Tout est dans tout, et réciproquement. » (Pierre Dac)
Technical Details
Message-ID:
<qhffjr$1f8$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me> <qh7fmj$urq$1@news.trigofacile.com> <qh8jul$kp3$1@dont-email.me> <qha9eh$g1f$1@news.trigofacile.com> <qhagv5.9h8.1@ID-201911.user.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <qhffjr$1f8$1@news.trigofacile.com> Subject: Re: LIST ACTIVE low & high water limits and wraparound Date: Fri, 26 Jul 2019 20:08:54 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me> <qh7fmj$urq$1@news.trigofacile.com> <qh8jul$kp3$1@dont-email.me> <qha9eh$g1f$1@news.trigofacile.com> <qhagv5.9h8.1@ID-201911.user.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 26 Jul 2019 18:09:00 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a77500b8555893d2b923f8.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:b855:5893:d2b9:23f8"; logging-data="1512"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 In-Reply-To: <qhagv5.9h8.1@ID-201911.user.individual.net> Content-Language: fr X-Received-Bytes: 7740 X-Received-Body-CRC: 4159453597