🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #12994

Re: INN 1.5b2 -- Caching while throttled

#12994
From: Michael Handler
Date: Wed, 04 Dec 1996 00:00
45 lines
2616 bytes
In <32a4ab82.2456831@193.162.146.10>,
Jesper Skriver <jesper@tdk.net> wrote:

> Yes, actually "hacked" (a very minor hack) nnrpd, so that it won't try
> to post the article directly, but always spools it.
> We did this because we use the same machine for readers and feeds, and
> sometimes our users experienced very long posting times (up to ~40sec)
> 
> And now we just run rnews out of the cron every minut.
> It works fine, and we havn't had any problems.

I assume you're talking about Bill Well's spooling nnrpd patch. I
installed it on nntp.netaxs.com when I was working there, and indeed,
it worked very nicely.

The one caveat about running rnews every minute out of cron is this:
if INN is paused (not throttled), or is renumbering, and you run rnews
-U, that rnews will hang infinitely waiting for a response to POST (or
a socket to INN, if it's renumbering). This really isn't a problem,
except that you build up lots of rnews processes, all trying to talk
to INN, and waiting until INN unpauses or finishes renumbering. And,
when INN does finish whatever it's doing, the rnews processes trip all
over themselves, each trying to serve the same articles into INN, and
whining into syslog when another rnews process deletes the article out
from under them.

This doesn't cause any major system damage, but it is messy and a
waste of resources. The solution is to get my esteemed cow-orker
Clayton O'Neill's super.rnews.diff from his web page at
<URL:http://www.news.erols.com/patches/>. This patch, in addition to
various other fun things, fixes rnews so that if it doesn't hear
anything from INN after 5 minutes, it exits cleanly. Then, the worst
case scenario is that you have five rnews processes running
simultaneously, which isn't that bad.

Michael, soon to be <mhandler@erols.com>, though not yet.
-- 
Michael Handler <handler@netaxs.com>


                                          dead set on destruction -- husker du


Technical Details
Message-ID: <slrn5ab469.kne.handler@access.netaxs.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
References: <581s1o$iu0@excalibur.flash.net> <58230f$grp@lyra.csx.cam.ac.uk> <32a4ab82.2456831@193.162.146.10>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5ab469.kne.handler@access.netaxs.com>
Subject: Re: INN 1.5b2 -- Caching while throttled
Date: Wed, 04 Dec 1996 00:00:00 +0000
From: handler@netaxs.com (Michael Handler)
References: <581s1o$iu0@excalibur.flash.net> <58230f$grp@lyra.csx.cam.ac.uk> <32a4ab82.2456831@193.162.146.10>
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: 202331602
Organization: Paladin of the Lost Inode
Newsgroups: news.software.nntp