🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21168

Re: YOUHAVE transaction and speeding up nocem's

#21168
From: Don Lewis
Date: Mon, 01 Sep 1997 00:00
50 lines
3144 bytes
In article <5ud3lb$grv$1@news.cmc.net>, brian moore <bem@news.cmc.net> wrote:
>I played with c-nocem a bit, but found it rather annoying: it likes pausing
>the server to process its mods to the history database, which of course
>kills any connections trying to deliver articles and is generally annoying
>to peers.

>Hack c-nocem to open a channel to inn (as ctlinnd does) and use that
>to pass the message ID's to cancel.  Keeping it internal to INN would
>allow news to keep coming in, no long pauses while it waits for each
>feed to close down, etc.

See NoCeM-On-Spool at ftp://ftp.mpcs.com/pub/newsadmin/nocem
The 0.92.3e version of it works like your description, but there are
some problems:
	I've found that on a busy server the channel isn't serviced
	often enough, causing processing of NoCeM messages to fall
	behind.  This doesn't help you refuse the articles before
	they arrive :-(  I saw backlogs of over 100 NoCeM messages
	before I hacked the code to only process the message-ID's for
	the groups that we receive.

	NoCeM message processing continues while the innd is paused
	or throttled.  This is probably not good, since expire or the
	administrator may be frobbing the history file.  The newer
	beta versions of this software try to avoid this problem but
	can't totally eliminated it, at the cost of even more overhead.

	This software attempts to work around a bug in the INN cancel
	code (the timestamp added to the history file is incorrect)
	by first doing an addhist with the desired timestamp, and then
	doing the cancel if addhist fails.  Unfortunately, there is
	a bug in innd.  If an addhist is attempted while the innd is
	paused or throttled, the check for an existing history file
	entry fails because innd doesn't open the history database
	first.  Innd then proceeds to add a new history file entry,
	possibly creating a duplicate entry and fooling the software
	into thinking it doesn't need to issue the cancel.

In the newer beta's, the software opens the history database, checks
for the history entries independently of innd, and removes the articles
by itself.  If it doesn't find the entry in the history database, it
uses the channel interface to get innd to add the history file entry.
This scheme still has some race conditions ...
-- 
Don "Truck" Lewis                                       TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com                         138 New Mohawk Road
Phone: +1 916 478-8284       FAX: +1 916 478-8251       Nevada City, CA  95959

Technical Details
Message-ID: <5ue8al$prt$1@news.gv.tsc.tdk.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: <5ud3lb$grv$1@news.cmc.net>

Show Full Headers
Complete Article Headers
Message-ID: <5ue8al$prt$1@news.gv.tsc.tdk.com>
Subject: Re: YOUHAVE transaction and speeding up nocem's
Date: Mon, 01 Sep 1997 00:00:00 +0000
From: gdonl@tsc.tdk.com (Don Lewis)
References: <5ud3lb$grv$1@news.cmc.net>
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: 269370675
Distribution: inet
Organization: TDK Semiconductor, Nevada City CA
Newsgroups: news.software.nntp