Article View: news.software.nntp
Article #62855Re: NNTP and YENC
From: Phil
Date: Mon, 06 Jan 2003 23:56
Date: Mon, 06 Jan 2003 23:56
133 lines
5819 bytes
5819 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote in message news:av9o02$1i9$1@puck.litech.org... > In article <j8TR9.568229$WL3.160487@rwcrnsc54>, > Bart Crane <svcrane@attbi.com> wrote: > > > >There is nothing more important than the uninterrupted processing of > >my NNTP-data!!! > > Well, to you, perhaps. In which case some of the burden will > need to fall to you... Indeed it has, and before complaining about this, I did research to verify that my expectations that NNTP data be in text-stream format were not the result of a a happy coincidence all these years), and discovered that the NNTP spec does indeed define that. Before that, I did quite a bit of analysis in order to determine the problem. Remember, the failure mode is not a crash, not an exception, just early termination... as though it ran out of data... like out of disk-space... stable, perfect problems failing quietly... gad, a programmer's nightmare!! That meant quite a bit of monitoring what is normally a lengthy background process, to see if some script was in a an endless loop. Since then, I have done some workarounds (grep -v yenc), and considered new architectures, including a back-end to newsget that does yenc-to-uuencode in binary-mode, or a front-end via a proxy to do the conversion. > > > >In the quest to reduce overhead, he went 1 byte to far. No big deal. Fix > >it. > > You can't. It's too late. You might be able to reduce the > number of posts that include ^Z somewhat, but you'll never get > rid of them. If NNTP servers were to conform to the NNTP spec, then they would reject articles that include CTRL-Z, and vendors of NNTP clients would then fix their implementations to conform to the NNTP spec. > > There are a lot of things about yEnc in particular and NNTP in > general that would be different if you gave us a magic wand to > change the past. But we don't have one, and that's just the way > it is. > > > >What data would an NNTP server normally reject as not being > >valid? One answer I got was "00h". That does not seem to > >be a very useful definition. > > It's up to the implementation, I suppose. Implementations in C > tend to have trouble with '\0' in character arrays. Then include 1Ah in the same way. There, compatibility, and conformance to the spec, restored. > > > >It does seem as though you and others are trying to say that NNTP servers > >are not bound by the NNTP spec anymore, but without actually saying that. > > NNTP servers have never been bound by the specifications. In > fact, the specifications are generally *based* on existing > implementations. > > > >Interesting... was there a Request For Comments regarding dropping > >the "textual" aspect of NNTP data? > > NNTP servers were never enforcing any sort of ban on binary data. > If anybody posted it, it would have mostly worked. It's just > that up until yEnc became popular, few people attempt to include > such things in their posts. > > So no, certainly no RFC on that. > > > >> What on earth is so hard about fixing your system so it works? > > > >It would be much harder than including CTRL-Z as a Critical Character > >in the YENC spec. > > You know, in the time you spent posting about this, you could > have fixed your code, installed a proxy server in between and > configured it to do the changes you require, or implemented a > variety of other solutions. Not true. There is no "fixing" the code. The code is not broken. The source of the data is broken. I could hack in a "see CTRL-Z, apply YENC-escape", but, from what I am hearing, there is no plan to prevent any other encoder from also inserting End Of File into the data stream... applying a YENC-escape could cause worse problems. There is not a variety of other solutions. I have to restore "text-mode-ness" to the stream, before it enters the pipeline. This means adding yenc-knowledge to software that is not aware of encoding formats. The decoder is the last stage in the pipeline. > > > >> The odds of you getting yEnc changed, and getting everyone out there to > >> upgrade to a recent version of yEnc which escapes ^Z is about zero. > > > >Naturally. That is why I am asking the NNTP server guys to help. > > > >If all YENC-data containing CTRL-Z were rejected, because it > >breaks compatibility with existing systems, I bet the spec would be > >updated and encoders updated pretty quick!! > > Uh huh. How exactly do you plan on getting all of the news > servers to do anything in unison? By posting here, of course!! > > > -- > Jeffrey M. Vinocur > jeff@litech.org
Technical Details
Message-ID:
<4GoS9.141$wz1.140270@news.uswest.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54> <av9o02$1i9$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <4GoS9.141$wz1.140270@news.uswest.net> Subject: Re: NNTP and YENC Date: Mon, 6 Jan 2003 15:56:24 -0800 From: "Phil" <PeepingUnder@TheCovers.org> References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54> <av9o02$1i9$1@puck.litech.org> 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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail Newsgroups: news.software.nntp Lines: 132 Organization: Human Sexuality Determination, Incorporated X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 65.115.68.98 X-Trace: news.uswest.net 1041897216 65.115.68.98 (Mon, 06 Jan 2003 17:53:36 CST) NNTP-Posting-Date: Mon, 06 Jan 2003 17:53:36 CST