Article View: news.software.nntp
Article #79242Re: Cleanfeed Binary Checks
From: Russ Allbery
Date: Fri, 01 Aug 2008 03:20
Date: Fri, 01 Aug 2008 03:20
29 lines
2483 bytes
2483 bytes
Matija Nalis <mnalis-news@voyager.hr> writes:
> INN probabaly really needs some bug tracking system; this "well known
> bug" was not known by me at all, even after some moderate amount of time
> wasted searching around. :(
Yup, will be working on it.
> I'm not XS expert by any measure, but I was stumbling upon similar
> problem for some time now (but never found enough time to track it down
> and make nice bug report and/or fix). The problem manifested itself by
> is_binary() returning wrong results sometimes, while saveart() articles
> looked good and checked manually.
Well, one obvious thing that could be done is to replace the current code
for initializing the __BODY__ key with the standard, normal way of making
a copy of the article body and storing that in the Perl variable. It will
be slower and take more memory, but it may work more reliably.
It's probably also worth investigating whether Perl has since acquired
some function to make an SV of a read-only chunk of external memory of a
known length and, if so, replace the innd code with something that calls
that rather than cobbling up its own version.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<8763ql5sli.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it> <slrng94sta.c76.mnalis-news@eagle102.home.lan>Show Full Headers
Complete Article Headers
Message-ID: <8763ql5sli.fsf@windlord.stanford.edu> Subject: Re: Cleanfeed Binary Checks Date: Thu, 31 Jul 2008 20:20:25 -0700 From: Russ Allbery <rra@stanford.edu> References: <g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it> <slrng94sta.c76.mnalis-news@eagle102.home.lan> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 29 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1217560825 17095 171.64.19.147 (1 Aug 2008 03:20:25 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:hQHzbfO4Itd3nN4oFONXWp8XdeY=