Article View: news.software.nntp
Article #64363Re: rnews error and message heagers
From: Russ Allbery
Date: Thu, 13 Mar 2003 00:06
Date: Thu, 13 Mar 2003 00:06
33 lines
2750 bytes
2750 bytes
James Harvey <jah4687@netscape.net> writes:
> Analysis:
> The main program parses the command line arguments and opens the
> connection to the remote, which all works fine. Since it is not
> unspooling, UnpackOne() is called, which reads a character, sees it is
> not a batch file, then calls ReadRemainder(), which opens a stream for
> the descriptor, reads the rest of the article into memory, closes the
> input stream (which also closes the descriptor!), and calls Process() to
> post the article. Process() notices the article is missing required
> headers, complains, and returns the status FALSE, which ReadRemainder()
> saves. ReadRemainder() then disposes of the article in memory and
> returns the saved FALSE status to UnpackOne(), which passes it back to
> the main program, which then calls Spool(), which barfs on the closed
> input file descriptor.
That's an excellent analysis. Thank you! I'll look at fixing that.
> There are other circumstances which can produce this message.
> However, I found staring at rnews.c too long makes my head hurt... :-)
Yes. It, like many other parts of INN, has grown organically and needs a
large amount of refactoring. We're getting through that slowly (I largely
rewrote tradindexed for INN 2.4, and Alex Kiernan extensively reworked the
history code), but there's a lot of code in INN.
--
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:
<ylptowqgdu.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<slrnb2sfca.8ap.news@morpheus.speedsite.com> <b1vbb9$1q9$4@puck.litech.org> <1e82c47c.0302121637.38a2109@posting.google.com> <yl3cm5ny2c.fsf@windlord.stanford.edu> <b4ohb5$l6t$1@hood.uits.indiana.edu>Show Full Headers
Complete Article Headers
Message-ID: <ylptowqgdu.fsf@windlord.stanford.edu> Subject: Re: rnews error and message heagers Date: Wed, 12 Mar 2003 16:06:37 -0800 From: Russ Allbery <rra@stanford.edu> References: <slrnb2sfca.8ap.news@morpheus.speedsite.com> <b1vbb9$1q9$4@puck.litech.org> <1e82c47c.0302121637.38a2109@posting.google.com> <yl3cm5ny2c.fsf@windlord.stanford.edu> <b4ohb5$l6t$1@hood.uits.indiana.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 32 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1047513998 14730 171.64.13.23 (13 Mar 2003 00:06:38 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:0Jb+2EJi4BhbNWXD3D0ZSFwcvro=