🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Daniel G. Kluge Fri, 14 Mar 1997 00:00
extremly slow newsgroup fetching with slrn
#32124
Author: Daniel G. Kluge
Date: Fri, 14 Mar 1997 00:00
60 lines
2746 bytes
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:

server -> client : 200 server InterNetNews NNRP server INN 1.5.1 17-Dec-1996 
ready (posting ok)..
client -> server : MODE READER.
server -> client : 200 server InterNetNews NNRP server INN 1.5.1 17-Dec-1996 
ready (posting ok)..
client -> server : GROUP alt.faselbla.
server -> client : 211 2385 266799 269554 alt.faselbla.
client -> server : HEAD 266848.
server -> client : 423 Bad article number.
client -> server : HEAD 266849.
server -> client : 423 Bad article number.
client -> server : HEAD 266850.
server -> client : 423 Bad article number.
client -> server : HEAD 266851.
server -> client : 423 Bad article number.
client -> server : HEAD 266852.
server -> client : 423 Bad article number.
client -> server : HEAD 266853.
server -> client : 423 Bad article number.

And slrn on client waits, send 'Connected to Server, Posting Ok' to 
the screens, and begins again with MODE READER, GROUP, and tries
to get the next headers, stops again..  and so on...

Since we seem to have quite some unavailabla articles in some groups
the fetching takes FOREVER...

Where is the bug/mistake usw. ? Any Pointers? Because I was not very
successful in tracing the thing in gdb, settting the right breakpoints.

Also, why does slrn NOT use XOVER, is it pissed about this one?

server -> client : 200 server InterNetNews NNRP server INN 1.5.1 17-Dec-1996 
ready (posting ok)..
client -> server : MODE READER.
server -> client : 200 server InterNetNews NNRP server INN 1.5.1 17-Dec-1996 
ready (posting ok)..
client -> server : <No data>
client -> server : XOVER.
server -> client : 412 Not in a newsgroup.
client -> server : <No data>
client -> server : NEWGROUPS 970314 105110 GMT.

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

TIA,

-daniel
-- 
Daniel G. Kluge - CS-Student / http://www.vis.inf.ethz.ch/~daniel/
E-Mail: daniel@vis.inf.ethz.ch (NeXT-Mail welcome) PGP-Key ID: 847D5C6D
Location: ETZ G63, Tel +41-1-632-7003 Fax. +41-1-632-1035  Pager 152-99-54082

Re: extremly slow newsgroup fetching with slrn
#32137
Author: 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.

Re: extremly slow newsgroup fetching with slrn
#32177
Author: Daniel G. Kluge
Date: Mon, 17 Mar 1997 00:00
47 lines
2448 bytes
On 14 Mar 1997 18:29:15 GMT, Olly Betts <olly@muscat.co.uk> wrote:

>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.
>    */

I stumbled over this lines as well in the source code.

Still, it's not clear to me, why I got these timeouts, when scanning 
huge ranges of Headers (with HEAD) for existing articles.

>>Also, why does slrn NOT use XOVER, is it pissed about this one?
>>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.

This is what I thought of, but couldn't verify it with the source.

>>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.

I was only scoring on 'From', 'Subject', 'References' and 'XRef', but with a
typo in a Subjext...

Thanx,

-daniel

-- 
Daniel G. Kluge - CS-Student / http://www.vis.inf.ethz.ch/~daniel/
E-Mail: daniel@vis.inf.ethz.ch (NeXT-Mail welcome) PGP-Key ID: 847D5C6D
Location: ETZ G63, Tel +41-1-632-7003 Fax. +41-1-632-1035  Pager 152-99-54082

Re: extremly slow newsgroup fetching with slrn
#32222
Author: Olly Betts
Date: Wed, 19 Mar 1997 00:00
18 lines
1311 bytes
In article <5gjirr$6t$1@elna.ethz.ch>, Daniel G. Kluge wrote:
>Still, it's not clear to me, why I got these timeouts, when scanning 
>huge ranges of Headers (with HEAD) for existing articles.

Your previous post said you were running INN 1.5.<something> which with the
default build parameters will start sleeping if you try to execute a lot of
HEAD, BODY or ARTICLE commands in quick succession (the idea is to stop
sucking feeds from using up too much of the server's resources).  There's an
INN configuration variable (something like "LIKE_PULLERS") which controls
this behaviour.

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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads