🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11514

Re: What's wrong with sucking? and how do we fix it?

#11514
From: Stu Heiss
Date: Tue, 08 Oct 1996 00:00
30 lines
1696 bytes
I have been using a perl script that is fairly optimal load-wise.
It started life as newspoll.pl but has evolved quite a bit.  There
is a controll file that as a list of group names and last article
number fetched.

The loop looks like this:

for each groupname, lastartnum {
	loart, hiart = nntp toserver GROUP newsgroup
	for artnum = lastartnum+1; artnum <= hiart; artnum++ {
		msgid = nntp toserver STAT artnum
		nntp tolocalnews IHAVE msgid
		if ok, transfer the article
		lastartnum=artnum
	}
	remember the current lastartnum to update the controll file
}

Nothing is used except GROUP, STAT, and ARTICLE on the feed site.  Articles
already seen by the fed site are skipped.  I don't think you can cut the
traffic or the load any more than this for a given set of subscriptions.

I also have a patch to nntp and another script that dynamically modifies
the control file based on whether anyone is actually trying to read news.

-- 
Stu Heiss - stu@jpusa1.chi.il.us http://www.mcs.net/~jpusa/docs/stu

Technical Details
Message-ID: <DyzAJM.7Kr@jpusa1.chi.il.us>
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
References: <5336lb$815@brasil.moneng.mei.com> <53451b$5f@pixi.com> <DyuynJ.CIA@djwhome.demon.co.uk> <1996Oct7.214447.22032@lorelei.approve.se>

Show Full Headers
Complete Article Headers
Message-ID: <DyzAJM.7Kr@jpusa1.chi.il.us>
Subject: Re: What's wrong with sucking? and how do we fix it?
Date: Tue, 08 Oct 1996 00:00:00 +0000
From: stu@jpusa1.chi.il.us (Stu Heiss)
References: <5336lb$815@brasil.moneng.mei.com> <53451b$5f@pixi.com> <DyuynJ.CIA@djwhome.demon.co.uk> <1996Oct7.214447.22032@lorelei.approve.se>
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: 188145226
Distribution: inet
Organization: JPUSA
Newsgroups: news.software.nntp