Article View: news.software.nntp
Article #27911Re: Proof of Concept (was cancelling from the perl filter)
From: Silas Dunsmore
Date: Thu, 30 Apr 1998 00:00
Date: Thu, 30 Apr 1998 00:00
37 lines
2140 bytes
2140 bytes
In article <373eevwd9e.fsf@cascade.cs.ubc.ca>,
Brian Edmonds <bedmonds@cs.ubc.ca> wrote:
>Silas Dunsmore <silasd@user.psyber.com> writes:
>> It uses the "ICC" interface to INN. This is basically a socket that
>> innd watches for commands on. It's actually the mechanism that
>> ctlinnd itself uses to talk to innd.
>
>Hmm, how does that work? I thought the perl filter blocks innd. If
I think you're right about the blocking. But the socket is used
asynchronously here. The message(s) will just sit in the socket's
queue until innd has a chance to process them... then the responses
will sit in the local-socket until the perl filter checks them.
>this is a safe method, it sounds pretty cool to me. Are there ways of
>using this channel to insert dummy articles into the history file?
Not at present, not as written. It could be done, mind. But there is
some issue about inserting new history entries via the ctlinnd cancel
mechanism.
IIRC, you try to add a new history entry, and if that _fails_, issue
the cancel command. It's been months since I looked into it, so the
details have faded on me. Consult ncmspcancel.c from the ncmsp package
for details on this.
To do all this asynchronously, you'd have to keep a _lot_ of state
information around.
--
Later, eh? Silas
Dobbs: I stole it from Dr. Frankenstein's laboratory myself. Highest-
quality human brain available.
Technical Details
Message-ID:
<6ian80$m0n$1@warez.psyber.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:
<ErJo4q.50J@ferret.ocunix.on.ca> <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca> <6i9ggc$aok$1@warez.psyber.com> <373eevwd9e.fsf@cascade.cs.ubc.ca>Show Full Headers
Complete Article Headers
Message-ID: <6ian80$m0n$1@warez.psyber.com> Subject: Re: Proof of Concept (was cancelling from the perl filter) Date: Thu, 30 Apr 1998 00:00:00 +0000 From: silasd@user.psyber.com (Silas Dunsmore) References: <ErJo4q.50J@ferret.ocunix.on.ca> <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca> <6i9ggc$aok$1@warez.psyber.com> <373eevwd9e.fsf@cascade.cs.ubc.ca> 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: 349244716 Organization: Psyberware Internet Access Newsgroups: news.software.nntp