Article View: news.software.nntp
Article #16037Re: hate-pullers INN bug fix patch
From: Andrew Gierth
Date: Wed, 19 Mar 1997 00:00
Date: Wed, 19 Mar 1997 00:00
60 lines
2801 bytes
2801 bytes
>>>>> "Egil" == Egil Kvaleberg <egilk@sn.no> writes:
> On 16 Mar 1997, Andrew Gierth wrote:
>> The problem is the conditional - the original version says "delay if
>> *either* we're processing an ARTICLE command, *or* we've processed more
>> than 100 ARTICLE, HEAD or BODY commands in this session".
Egil> Are you sure of this? In that case, that code is *seriously* broken.
Egil> Reading using ARTICLE would be less demanding on resources then use of
Egil> HEAD then BODY.
I'm pretty certain, based not only on my reading of the code but also on the
reports here.
Here's the full analysis, just to prove the point:
ARTsend is called with "what" == STarticle, SThead or STbody, in response
to ARTICLE, HEAD or BODY commands respectively. (See CMDfetch.)
The LIKE_PULLERS code is this bit:
#if defined (DONT_LIKE_PULLERS)
{
static int count ;
count++ ;
if (what == STarticle || count > 100)
sleep (1) ; /* slow down sucking readers */
}
#endif
So, initially, count=0 (normal static initialisation).
Count is incremented for every call to ARTsend.
The sleep(1) call is executed if the command was ARTICLE *or* if ARTsend
has been called more than 100 times.
This code has all the hallmarks of a last-minute, untested hack.
>> That slows down suck-feeds without impacting on
>> legitimate users,
Egil> And why on earth would sucking feeds not be legitimate? As long
Egil> as such feeds are used for retrieving news that would otherwise
Egil> be retrieved directly using a newsreader, I can see nothing
Egil> illegitimate about them whatsoever. On the contrary, sucking
Egil> feeds of set up properly would use less resources.
Poor choice of words, perhaps. Since I operate a sucking feed myself,
I agree 100% with the above comments.
[See earlier postings of mine for the design of the code that I use
for this purpose; it uses XOVER to dedup and pre-filter, then does
all fetches on article number only (it avoids NEWNEWS).]
--
Andrew.
Technical Details
Message-ID:
<87pvwv6bsb.fsf@erlenstar.demon.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-mailReferences:
<332C0B8C.3D4494D5@spinne.com>Show Full Headers
Complete Article Headers
Message-ID: <87pvwv6bsb.fsf@erlenstar.demon.co.uk> Subject: Re: hate-pullers INN bug fix patch Date: Wed, 19 Mar 1997 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <332C0B8C.3D4494D5@spinne.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-mail X-Deja-AN: 226777706 X-NNTP-Posting-Host: erlenstar.demon.co.uk X-Mayan-Date: Long count = 12.19.4.0.2; tzolkin = 5 Ik; haab = 5 Cumku Organization: disorganised X-Attribution: AG Newsgroups: news.software.nntp