Article View: news.software.nntp
Article #26707Re: Q: XHDR and XOVER
From: Terry Kennedy
Date: Mon, 09 Mar 1998 00:00
Date: Mon, 09 Mar 1998 00:00
89 lines
5335 bytes
5335 bytes
Simon R Knight <srk@bigfoot.com> writes:
> The first suprise to me when talking to different news servers, was
> that the first and last article numbers returned by a GROUP command,
> sometimes encompass a range in the thousands, even though the
> estimated number of articles may only be a few hundred ?
Not all servers implement update the minimum article number on a regular
basis. I have some transfer-only servers where I only update the minimum
article number once a week. [Of course, the maximum article number is up-
dated each time a new article arrives for that group.]
> Before writing my program, I imagined that it would be possible to
> iterated through each of the article numbers in a group, to extract
> header information (eg. NNTP-Posting-Host or Path) that isn't provided
> by the XOVER command.
Normally, newsreaders keep track of the last article seen in each news-
group and start from there, regardless of what the server says the minimum
article number is. It is generally accepted that articles will always be
added starting at the highest article plus one. Various people have pro-
posed doing otherwise (in particular, "backfilling" some of the empty
slots) and general agreement seems to be that that is a Bad Idea.
> My next experiments were with the NEXT command, where it became
> apparent that returned article numbers were not sequential, but
> jumping over certain intermediate ranges. I am now wondering if the
> article numbers returned with the NEXT command (or XHDR SomeHeader-)
> are actually identical to those articles in the NOV database ?
Those are probably cancelled articles (if there are existing articles both
above and below the missing article) although it could also be a history
database corruption problem (when articles are removed from the history file
but not actually removed, you can get a large gap). It is then necessary for
the news admin to run some procedure to "rediscover" those articles and
either get rid of them or re-add them to the history file. This step is news-
server-specific.
> When I iterate through some of the article numbers that a NEXT command
> (or XHDR SomeHeader-) will jump over, I am often able to obtain path
> lines using the HEAD command. I would not expect this, as I think the
HEAD command gets the header out of the saved article. What does the news
server you're talking to report itself as (on the initial connect line)?
> nothing else). My second question is; is this XHDR command (with the
> first article number followed by a hyphen), using the NOV database
> also, or is it using some other database that may be unreliable for a
> news client to rely on ?
This is an implementation decision.
> At the moment, I am wondering if I should perform and XOVER- command,
> and obtain an overview of all NOV articles, and then specifically
> request Path field bodies, and NNTP-Posting-Host field bodies, using
> each article's number or message id ? If the XOVER- command is only
> returning the same article numbers as the above XHDR (and NEXT)
> command, then I could skip an overview where overview data is not
> essential, and simply use these other commands. Uppermost in my mind,
> is the reliability of and support for commands like XHDR and XPAT as
> opposed to XOVER ?
XPAT isn't in Reference NNTP (yet - I'll be adding it if I stay with that
code for my server - right now I'm waiting for solid Diablo reader support
and then I'll need to decide to merge my local stuff into Diablo or stay
with Reference NNTP). Reference NNTP is pretty uncommon these days, though.
If you're going to plow through all the articles on a server, I think
you need to see which operations that specific server handles most
efficiently. Asking the server admin is a _good_ idea. If you asked me, I
would say I would much prefer to give you a header-only feed than to have
you trying to read every article off my server.
> What is the future looking like for NNTP server software ? What
> changes might I expect to encounter in during the next few years?
There will be lots of reader servers that support readers coming out, which
will likely have very different efficiency tradeoffs compared to the current
servers.
> PS. I'm not sure if this is the best newsgroup to pose these
> questions; please let me know if there is a more appropriate one.
Looks fine to me.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Technical Details
Message-ID:
<EpJEF4.E0x@spcuna.spc.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.mbox.zip!not-for-mailReferences:
<350360c6.17001868@news.tcp.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <EpJEF4.E0x@spcuna.spc.edu> Subject: Re: Q: XHDR and XOVER Date: Mon, 09 Mar 1998 00:00:00 +0000 From: Terry Kennedy <terry@spcunb.spc.edu> References: <350360c6.17001868@news.tcp.co.uk> 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: 332144199 Distribution: inet X-Complaints-To: Email abuse@spc.edu if this posting is inappropriate X-Trace: spcuna.spc.edu 889422015 16957 terry [192.107.46.132] Organization: St. Peter's College, US Newsgroups: news.software.nntp