🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32137

Re: extremly slow newsgroup fetching with slrn

#32137
From: Olly Betts
Date: Fri, 14 Mar 1997 00:00
62 lines
3038 bytes
In article <5gbrbr$gpe$1@elna.ethz.ch>, Daniel G. Kluge wrote:
>I use slrn 0.9.3.2, and on some groups, I have an extremly slow fetching
>of the articles.
>
>A tcpdump-trace showed the following beahaviour:
>
>[snip]
>client -> server : GROUP alt.faselbla.
>server -> client : 211 2385 266799 269554 alt.faselbla.
>client -> server : HEAD 266848.
>server -> client : 423 Bad article number.
>[and lots more bad HEADs]

In general slrn uses "NEXT" to find the next article to "HEAD" if it finds a
gap, but this doesn't work if there's a gap at the start of the range slrn
is interested in.  The source has this comment:

   /* The rest of this function applies when not using XOVER.
    * It is complicated by the fact that the server may contain huge ranges
    * of missing articles.  In particular, the first article in the desired
    * xover range may be missing.  The following code determines the first
    * article in this range.  If the range is large an no articles are present
    * in the range, it may be rather slow.
    */
	 
>Where is the bug/mistake usw. ?

I think it's a minor limitation of NNTP: given an article number in a group,
if that article isn't on the server, there's no nice way to find the first
article after it that does.  You can only use NEXT from an article known to
exist, which is only the first and last after a GROUP command.  The options
I can see are:

* Use HEAD on consecutive articles like slrn does
* Use XOVER/XHDR/XPAT on small-ish ranges of documents until you find a
  non-empty one (so XOVER 266848-266857, XOVER 266858-266867, ...) 

The second is probably a little kinder on the server, but you need the first
as a fall-back in case the server doesn't support any of the range commands.
If you want to try patching it, xover.c is the place to look.

>Also, why does slrn NOT use XOVER, is it pissed about this one?
>
>[snip]
>client -> server : XOVER.
>server -> client : 412 Not in a newsgroup.

That looks fine -- slrn only assumes XOVER isn't implemented if it gets
a "500" response back when it probes for XOVER.

>Or are there any other things, that can prevent slrn from using XOVER ?

Yes.  The most likely is that you are scoring on header lines that aren't in
the overview file.  Try 'slrn -k0' to inhibit "expensive scoring" and see if
that is faster.  If so, it's your scorefile.

Olly
-- 
Usenet is not for answering questions but for questioning answers.

Technical Details
Message-ID: <slrn5ij9bl.4me.olly@noxious.muscat.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.readers.mbox.zip!not-for-mail
References: <5gbrbr$gpe$1@elna.ethz.ch>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5ij9bl.4me.olly@noxious.muscat.co.uk>
Subject: Re: extremly slow newsgroup fetching with slrn
Date: Fri, 14 Mar 1997 00:00:00 +0000
From: olly@muscat.co.uk (Olly Betts)
References: <5gbrbr$gpe$1@elna.ethz.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 225554233
Organization: PSINet UK
Newsgroups: news.software.readers