Article View: news.software.nntp
Article #13483Re: limiting crosposted articles ?
From: James Brister
Date: Sat, 21 Dec 1996 00:00
Date: Sat, 21 Dec 1996 00:00
47 lines
2444 bytes
2444 bytes
aab@cichlid.com (Andy Burgess) writes: <regarding changing article headers in the perl & tcl filters> > >-- all such modifications (and they are kept to a minimum) should > >be kept inside innd itself if only because calling into perl or tcl is not > >a lightweight operation. > > It seems to me that if you are using the perl filter already any added > functionality is free of overhead. You are already running the perl > script. Not so free. There would be the Perl overhead and then there is the extra buffer management overhead that innd would have to do to copy the buffers back out. It would either have to check every header to see if it changed, or just copy everything back out always on all articles. Not an insignificant amount of work. > >Secondly, a slightly broken perl/tcl script that was modifying articles > >would have disaterous consequences. > > Bugs anywhere can have consequences, in the perl filter or in > innd or ... True. But broken scripts now just mean you're rejecting good articles. Broken scripts that modify articles mean you propogate broken articles. I haven't seen anyone explain why they want to modify articles they didn't generate locally. > It seems that for some cases it would be more efficient. It would be > nice to avoid copying the article body but if the perl script could > get a pointer to it then r/w access is pretty much overhead free. The perl interface isn't so simple. It looks like Everything that gets passed in gets copied. I don't think I'm going to be able to supply r/o access to anything. I will eventually get all headers in there, and optionally the body, but that's going to be a memory hit. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org/isc inn@isc.org
Technical Details
Message-ID:
<yy3n2v7spwv.fsf@velo.pp.vix.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:
<5941f3$ej5$1@kiyoko.communique.net>Show Full Headers
Complete Article Headers
Message-ID: <yy3n2v7spwv.fsf@velo.pp.vix.com> Subject: Re: limiting crosposted articles ? Date: Sat, 21 Dec 1996 00:00:00 +0000 From: James Brister <brister@vix.com> References: <5941f3$ej5$1@kiyoko.communique.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: 205407609 Organization: Internet Software Consortium Cc: aab@cichlid.com Newsgroups: news.software.nntp