Article View: news.software.nntp
Article #15929Re: hate-pullers INN bug fix patch
From: Andrew Gierth
Date: Sun, 16 Mar 1997 00:00
Date: Sun, 16 Mar 1997 00:00
32 lines
2056 bytes
2056 bytes
>>>>> "Jeff" == Jeff Garzik <jeff.garzik@spinne.com> writes: Jeff> I attached a simple patch to nnrpd/article.c that fixed the broken inn Jeff> 1.5.1 LIKE_PULLERS behavior. There was a [seemingly] uninitialized Jeff> variable that was incremented to 100. On some OSs it would do nothing, Jeff> on others it had the possibility to sleep basically infinitely. No, the variable *is* initialised - static variables initialise to 0 by default. Your fix is no improvement. 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". Since it's quite legit for a newsreader to use ARTICLE to do fetches, this is unfairly penalising the use of ARTICLE rather than HEAD/BODY, and also (without your change) penalises anyone reading more than 100 articles in a session. A better approach to fixing this is to track the time that the last command was issued, and insert the delay if the time since the last command is less than some limiting value. That slows down suck-feeds without impacting on legitimate users, and also removes the temptation for a suck-feed to disconnect and reconnect after every 99 articles. Also, intrusive options like this should *never* default to on. -- Andrew.
Technical Details
Message-ID:
<87wwr7h9hh.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: <87wwr7h9hh.fsf@erlenstar.demon.co.uk> Subject: Re: hate-pullers INN bug fix patch Date: Sun, 16 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: 226007939 X-NNTP-Posting-Host: erlenstar.demon.co.uk X-Mayan-Date: Long count = 12.19.3.17.19; tzolkin = 2 Cauac; haab = 2 Cumku Organization: disorganised X-Attribution: AG Newsgroups: news.software.nntp