Article View: news.software.nntp
Article #15920hate-pullers INN bug fix patch
From: Jeff Garzik
Date: Sun, 16 Mar 1997 00:00
Date: Sun, 16 Mar 1997 00:00
53 lines
2093 bytes
2093 bytes
This is a multi-part message in MIME format.
--------------24212F1157959D2E20B121C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
(cc'd to inn-bugs)
I attached a simple patch to nnrpd/article.c that fixed the broken inn
1.5.1 LIKE_PULLERS behavior. There was a [seemingly] uninitialized
variable that was incremented to 100. On some OSs it would do nothing,
on others it had the possibility to sleep basically infinitely.
I didn't see this in 1.5.x unoff-patches, so here it is. I thought of
an enhancement, but I didn't want to go digging through config.data
setup files. Have an additional setting LIKE_PULLERS NICE. Instead of
sleep(1) before an article download, which is the 'DO' behavior, have a
sleep(0) call. On OSs that support it, sleep(0) will give up the
remainder of the process's time slice.
Jeff
--------------24212F1157959D2E20B121C7
Content-Type: text/plain; charset=us-ascii; name="hate-pullers"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hate-pullers"
--- article.c.orig Sun Mar 16 09:51:31 1997
+++ article.c Sun Mar 16 09:52:57 1997
@@ -234,14 +234,8 @@
GRParticles++;
#if defined (DONT_LIKE_PULLERS)
- {
- static int count ;
-
- count++ ;
-
- if (what == STarticle || count > 100)
- sleep (1) ; /* slow down sucking readers */
- }
+ if (what == STarticle)
+ sleep (1) ; /* slow down sucking readers */
#endif
/*
--------------24212F1157959D2E20B121C7--
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <332C0B8C.3D4494D5@spinne.com> Subject: hate-pullers INN bug fix patch Date: Sun, 16 Mar 1997 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@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: 225952833 Organization: Spinne http://spinne.com Newsgroups: news.software.nntp