Article View: news.software.nntp
Article #35499Re: LISTGROUP NNTP extension: How commonly implemented?
From: Curt Welch
Date: Thu, 18 Feb 1999 00:00
Date: Thu, 18 Feb 1999 00:00
117 lines
6617 bytes
6617 bytes
spamblock@nospam.com (Pete the Plumber) wrote: > I'm implementing an NNTP client that uses XOVER (if available) to > download article headers from the server. For each newsgroup, there > is a data file of article headers, which also contains the minimum and > maximum article numbers for that group at the time the article headers > were saved to disk. When getting new headers, only those with article > numbers greater than the previous "high water mark" are requested. > This is nice and efficient, but I've found that I'm missing articles > fairly often. Your news server is broken. Get them to fix it :) > I've found that XOVER is not reporting some articles as > present until later than other articles that have higher article > numbers are reported present. Yeah, this is a tough problem. People run servers in xref slave mode (i.e. multiple servers are all trying to copy to article numbers of a master server) - and then they run transport software that tends to deliver the articles out of sequence. This leaves holes which are later filled in. It can be a problem for reading articles as well as for xover results etc. Some people (news admins that set up systems like this typically) believe news readers should be able to "deal with it". Newsreader authors tend to think this breaks the intended semantics of NNTP and it makes the job of the client unresonably hard. (i.e. if you have lots of "holes" in a group (say from XOVER output) when is it safe to assume those holes will never get filled in?) If your client downloads XOVER data for 10000 aticles and in that there are 100 "holes", it's just never practical to keep re-checking all those holes to see if they get filled in because there's no easy way to do that on a single command. You might however write a client which will re-check any holes in say the last N articles from the previous download. But, not all servers do what yours is doing to you. Many actually work correctly and will _never_ fill in a article below the high water mark which could previosly have been reported as MIA. I don't know if this as a fact, but I would guess that most newsreaders don't deal with articles that show up out of sequence - if they aren't there when the user first checks for headers - then they aren't there... Now another posibility is that the server you are using really does have problems - like the xover data is created seperately and much later than the articles are stored - and that is just a buggy server that needs to be fixed. > I've looked in the NNTP extensions document > (draft-ietf-nntpext-imp-02.txt), and it appears that the LISTGROUP > command would be a good solution to this problem. Nope. It will most likely have the same problem. If a server can't get the XOVER data right chances are it can't get a LISTGROUP right either. But as a fast way to attempt to re-check the holes at a later date it's probably a reasonable thing to try. > I could always > request the complete list of article numbers in a group, check it > against what I already have, and request all missing articles. But > I'm not sure how commonly implemented this command is on servers set > up for readers. I've checked the public borland.com and microsoft.com > servers, as well as my ISP's server (Worldnet). They all implement > it. Can I safely assume that the vast majority of my customers will > get the benefit of this implementation? I think so. But the fact remains that for almost all NNTP commands besides GROUP and ARTICLE you will have to be prepared for the server to not do what you want. > Also, how about XHDR? The NNTP extensions document states that it's > been available on the "UNIX reference implementation" since its first > release. Does this mean that virtually all servers support XHDR? XHDR has two problems (other than the fact it might not be there). The first is that on some servers, it can only return data that's stored in the XOVER data base. If the header you want isn't in the XOVER data, then XHDR can't return it. On these servers, the only thing XHDR buys you is a bandwidth savings if you only want a subset of the XOVER data. On other servers, (like inn), XHDR can return any header. But for non XOVER haders, it must open and search every article - and that gets real slow if you are trying to do bulk downloads of thousands of headers. > Finally, is there a matrix somewhere that specifies a list of NNTP > extensions, together with a collection of different server software > implementations (with versions specified) that says which version of > which program supports which NNTP extensions? Not that I've ever seen. > I was thinking of > something along the lines of parsing the server greeting message to > determine the software used (and its version), and going into a lookup > table to determine the optimum way to perform various operations. Don't. Most servers allow the site to change the greeting message so that won't work very well. It's just a waste of time and energy to try to build those tables. > Or > is it necessary to have my software play "twenty questions" with the > server to determine which NNTP extensions it supports? No. Just design your client to use the smallest and simplest set of NNTP commands possible to do what you want to do. Don't get too fancy because you will likely find that the next server you use won't work exactly the same. And watch out for performance issues - like xhdr of 5000 articles might only take seconds on one server whereas it might take minutes on the next. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19990218025038.316$ry@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.mbox.zip!not-for-mailReferences:
<7ag3ac$gfm@bgtnsc03.worldnet.att.net>Show Full Headers
Complete Article Headers
Message-ID: <19990218025038.316$ry@newsreader.com>
Subject: Re: LISTGROUP NNTP extension: How commonly implemented?
Date: Thu, 18 Feb 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <7ag3ac$gfm@bgtnsc03.worldnet.att.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.mbox.zip!not-for-mail
X-Deja-AN: 445620405
X-User: Curt@NewsReader.Com
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
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp