Article View: news.software.nntp
Article #21250Re: YOUHAVE transaction and speeding up nocem's
From: Don Lewis
Date: Wed, 03 Sep 1997 00:00
Date: Wed, 03 Sep 1997 00:00
46 lines
2648 bytes
2648 bytes
In article <5uic5l$1ba$1@news.cmc.net>, brian moore <bem@news.cmc.net> wrote:
>In article <5ui1ir$cqv$1@bigred.inka.de>,
>Does
>ncmspool really call ctlinnd?
Nope, it uses the interface in libinn.a.
>Hrrm.... well, I played a bit and it seems to work fine: basically,
>I call ICCopen() to open the socket, then for every call to do_one,
>I instead call ICCcancel(). (Oh, and I commented out the pause code in
>c-nocem itself.). It does end up messing up the site (listed as '?')
>in the logs instead of being '[NoCeM]', but seems to work fine.
Beware of this comment in the released version of ncmspool:
/* now actually cancel the article. 2 steps:
1. add history entry
2. if 1 fails then generate a cancel
(can't just cancel in #1 since bug in INN generates
a history record with a date from the 1980s)
*/
I think if you've installed the INN cancel timestamp patch you
should be able to avoid this problem, but you could corrupt the
history file by telling innd to do the cancel while innd is paused
by expire so that it can frob the history file, or throttled because
innd ran out of space while writing history.
If you have not installed this patch and you use the ncmpspool algorithm,
you'll stumble across the innd bug that causes it to always add an entry
to this history file while innd is paused or throttled no matter if the
entry exists or not, and you won't know to remove the article.
The latest beta of ncmspool attempts to avoid the latter problem by
checking the state of innd, but there's still a race condition. It
also does a dbz lookup and unlinks the file independently of innd,
causing a couple of other 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:
<5uilso$2no$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-mailReferences:
<5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de> <5uic5l$1ba$1@news.cmc.net>Show Full Headers
Complete Article Headers
Message-ID: <5uilso$2no$1@news.gv.tsc.tdk.com> Subject: Re: YOUHAVE transaction and speeding up nocem's Date: Wed, 03 Sep 1997 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) References: <5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de> <5uic5l$1ba$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: 269633651 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp