Article View: news.software.nntp
Article #71092Re: [NNTP] LISTGROUP
From: Curt Welch
Date: Wed, 20 Apr 2005 00:53
Date: Wed, 20 Apr 2005 00:53
65 lines
4191 bytes
4191 bytes
Mark Crispin <MRC@CAC.Washington.EDU> wrote: > My comments: > > I think that I've expressed my dismay at NNTP's abuse of 4xx codes > before, and 411 and 412 are no exception. 412 in particular offends me; > if this isn't properly a 5xx code I have a hard time thinking of what > would be. 411 and 412 are already well defined with LISTGROUP. You can't change them now withing risking breaking clients. > Can we get rid of that "estimated" from "estimated number of articles in > the group"? As far as I am concerned, an estimated value is worse than > useless, and an NNTPv2 compliant server should be required to give an > exact value. It's unresonable to expect an NNTP server to be able to calculate that value. In a group with 10 million articles receiving 20 new articles per second, and expiring them just as fast from what may be 100 different spools with different retentions it's just way too much CPU work to accuratly track the number of current articles in a group. My server tracks it accuratly for small groups, but when the CPU time to scan the group goes past 1/2 second it gives up and reports the best number it can. Many full feed servers these days can't even estimate the number anymore without actually trying to fetch every article in the group. In truth, if you wanted to make a change, that "estimate" should be removed because it's no longer resonable for many servers to calculate it. But for backward compatibility, we should just continue to support it as an estimated number. > What is a "reported" high and low water mark as opposed to a high and low > water mark? > > In a range, how is 5-1 interpreted? Is it equivalent to 1-5? > > Note that if 5-1 is equivalent to 1-5, then 5- is equivalent to 4-5 if 4 > is the highest article number (and you need to change that "all > following" text). > > If it is it an error, then there needs to be an error code. I don't think so. 5-1 means: "all articles with numbers >= 5, and <= 1". The answer to that question is "no articles". The question is not invalid to ask. GROUP and LIST already return low and high water marks where the high water mark is less than the low water mark for a group. So if a client takes those numbers, and passes them to LISTGROUP in order to dump the entire group, he should not get an error for an empty group, it should return an empty list. I agree that the spec should be clear about how to parse a range argument and when to return an error and when not. But I suspect that most servers do not see the above type of range as an error now so it should not be turned into one or else you risk breaking clients. But whatever is seen as the best way to do that should be documented in the spec for all range arguments. > Should lists of article numbers/ranges be allowed, e.g. 1-5,14-34,56- ? I don't see much value in that. A client can just issue multiple LISTGROUP commands if it really needs to do that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20050419205322.158$D1@newsreader.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<87is2mz13d.fsf@windlord.stanford.edu> <Pine.WNT.4.63.0504181529350.3216@Tomobiki-Cho.CAC.Washington.EDU>Show Full Headers
Complete Article Headers
Message-ID: <20050419205322.158$D1@newsreader.com>
Subject: Re: [NNTP] LISTGROUP
Date: Wed, 20 Apr 2005 00:53:22 +0000
From: curt@kcwc.com (Curt Welch)
References: <87is2mz13d.fsf@windlord.stanford.edu> <Pine.WNT.4.63.0504181529350.3216@Tomobiki-Cho.CAC.Washington.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com iImj8NT-0Mz0bJbOea9Re3GdB11q2-vb+kvLiFES.ev6jT7
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 65