Article View: news.software.nntp
Article #62822Re: NNTP and YENC
From: Curt Welch
Date: Sun, 05 Jan 2003 20:35
Date: Sun, 05 Jan 2003 20:35
350 lines
17695 bytes
17695 bytes
"Bart Crane" <svcrane@attbi.com> wrote: > "Curt Welch" <curt@kcwc.com> wrote in message > news:20030104215829.905$Rh@newsreader.com... > > "Bart Crane" <svcrane@attbi.com> wrote: > > > It was also > > > suggested that I email yenc.org, but I had already done so and > > > received no response. It is a ridiculously small thing, a 1-byte > > > change to the encoder-spec, and no change on the decoder. > > > > Hey, I talk with Juergen all the time. And I asked him to fix the link > > to my newsreader.com service on the yenc.org site which has been broken > > since it was added and he's not gotten that done either. We are all > > busy, some things are more important than others. > > There is nothing more important than the uninterrupted processing of > my NNTP-data!!! I've been writting Usenet software for a long time and the one thing I know about Usenet is that nothing you write will keep working. Common practice on Usenet is constantly evolving and you have to keep updating your software or else it will stop working and become worthless. If you lost your source code years ago, that's your problem isn't it? If you are not a programmer and are forced to hire one to fix your problems, that's your problem isn't it? Why do you think it's resonable for 100,000 usenet server admins to change their servers to help you deal with the fact that you can't fix your software? > There were five Critical Characters defined in YENC at one point, > and then there were four. This indicates to me that there is some > question about what exactly should constitute a "Critical Character". And it shows that reducing the number of characters is important because it reduces the overhead which is the one thing yEnc has done. I don't mind cchanging my encoders to escape ^Z beause it's a minor change. But changing the yEnc spec to tell everyone they should do it is something you need to look a little more at. If 1 out of 256 characters in yEnc files turn out to be ^Z, then adding that to the escaped character list will expand the size of most yEnc articles by 1/256 of their current size. Useent volume is about 600 GB/day now. If 30% of that is yEnc, then you are asking for a change which will cause an increase in volume of 700 MB per day. If there are 100 full-feed servers in the world, then that change will cause an extra 70GB of data to be transfered every day because of that change. If the number of people downloading from usenet servers is 5 times the feed volume, then you are adding an additional 350GB per day the users have to download because of this change. Are you the only person in the world running into this problem? Should the rest of the world pay for the transfer of an extra 420 GB of data, every day, just because you can't fix your software? > If there had been a Request For Comments, all this could have > been pointed out before it broke my system. There was plenty of requests for comments in this group long before yEnc ever went anywhere. If you weren't here helping to shape the future of Usenet, it's a bit late to fix now. But if you were here, you would have understood that for the past 10 years we have been talking about the issues of moving binary data on Usenet instead of just text, and we have been modifing servers to make them as 8-bit clean as possible. Servers have been moving files with ^Z in them for years. Long before yEnc was talked about. It just wasn't common. > At the least, I would have been able to take action to prevent my > system from breaking, instead of the frustrating hours spent trying > to figure out what could possible be going wrong... So you had to spend a few hours hunting down your problem. I've spent days of my life depating these issues not to meantion years writing software and tracking down untold "problems" caused by how Usenet has changed and broke my software. That's life. > Thus, there > was > no choice but to include all non-textual characters. Text is not just US english. There are a lot of character sets in use around the world to represent "text" in various languages and most require more than US-ASCII 7 bit characters. This, and the need to transport binary more effecently is what has caused this conversion of Usenet from simple ASCII text to binary. It's been a long hard road to make this happen. People have spent years working to make this happen. Now, you, finally wake up and realize the boat left you behind think it's resonable to un-do all those years of progress and go back to the way it was 10 years ago? I don't think so. > This is not a "7- to 8-bit" issue. This is a text- vs. binary-stream > issue. Exactly. Usnet is not text anymore, its a pure binary stream. Most Usenet servers today transport pure 8 bit binary with no line length limitations. The only issue left is the fact that some servers see LF as well as CR LF as an end of line marker when looking for CR LF DOT CR LF so this means CRs and LFs will be a problem maybe forever. But other than not knowing for sure what happens with CRs and LFs, all other characters, and all line lengths, are now "expexted" on Usenet. Any client software that deals with NNTP servers must be able to deal with binary stream data in articles. Sorry, but this is a decision that was made years ago and you weren't around to debate it so it's too late now. > The NNTP authors specifically state that the Response Data is "textual". We changed that. No one has written a new RFC yet. Sorry. Not my problem. The RFCs do not define Usenet. Usenet is a system defined by common practice. The RFCs just attempt after the fact to define whats being done. > The NNTP authors did not define what "textual" meant, because it would > link implementation with specification. The implementation is operating- > system specific, and is manifested in whatever differences exist between > opening a file in "r" and "rb". Only in CP/M. "text" in other systems in other languages means pure 8 bit data. > Could you tell me what you define the difference between > textual and non-textual data to be? > > 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. Most servers do not in fact reject NUL. My server works fine with it. My server currently has over 48,000 articles in the spool with nulls in them. Here one if you want to look at it: <9L%R9.18341$GF.8985164@twister.columbus.rr.com> > Why not include 1Ah, since it has special meaning to text-streams, > and has for over 20 years? Because my server allows pure 8-bit binary. The only thing it rejects are articles containg the sequences: LF DOT CR LF, CR LF DOT LF, and LF DOT LF. All other combinations of pure 8 bit binary data works fine. I wrote it that way on purpose and I'm not going back to the bad old days of "text" NNTP becuse you can't fix your code. No one else is going to either. > Application code is not aware of the underlying translation performed > on the data processed by fread() and fwrite(). > > This raw- vs. cooked-mode stuff, binary- vs. text-stream stuff is all > very old... I can see that the fact that CTRL-Z == EOF is not common > knowledge for the people in these groups. I used to program CP/M systems and old DEC systems where the convention started so it's common knowledge to me. I wrote Unix to CP/M conversion sofware. I wrote Medical billing systems that ran on both Unix and CP/M systems that had to deal with cross-platform data issues. Boy was I happy when Bill and the other kids came out with the new MS-DOS and we were able to drop ^Z support and use "COPY" instead "PIP" move files and the filesystem even supported directories instead of user spaces. That need to support ^Z vanished with that conversion and that was what 1980? I for sure am NOT going to support somthing now that I got rid of in 1980. > Writing text-processing utilities is fun, and portable! Sure, that's fine. But there comes a time why you have to grow up and face the fact that you have to write ugly code at times to get the job done. > That is because there is a spec regarding what constitutes a text- > stream, defined by the operating system, and the implementers of the > C runtime library for that operating system provide the translation > between '\n' and whatever the operating system uses as the end-of-line > delimiter. Do you have a clue that the world is a bit bigger now and the concept of a "text" stream just isn't very useful anymore when it comes to trying to help people communicate? > It also does whatever is necessary to present the End Of File condition. > Some operating systems use a special character, like CTRL-Z, Nothing in common use for the past 20 years uses a "special character" to mark end-of-file in-band. That was a very very bad way to do thing and it was fixed long ago. > and others use a size-value in the directory entry, and others use a > resource-fork -- just guessing here!!! -- you get the picture. Yeah, I understand that you have no clue how all this really works. > The end-result is that you can write filter programs that compile on > any platform with stdio.h. Guess what. You can't. You have now learned what the rest of us have know for 20 years. Only simple problem have simple answers. Dealing with Usenet and a the needs of a few million users is never simple. > Text-mode in Unix and Linux is not very different from binary-mode. > In fact, I can't think of a single difference. There's not such thing as "text" mode on Unix. "text" mode was a hack added to the Unix standard IO packat to make Unix programs a little easier to port to DOS systems. Period. It's a hack which was known not to work for all cases, just some of the simplest ones. "text" mode is just a DOS hack filter included in the stdio package to do what most people normally needed to have done. But it doens't work for everyone. On Unix, people write \n terminated strings to binary files and the code assumes that \n is 1 byte in length. If you have a 10 character buffer what needs to be \n terminated you assume it's got 9 chargers left. But if you writew your code like that, it breaks when you port it to DOS because the stdio "text hack" doesn't deal with everything correctly. So any program that does anything besides read and write sequential text files needs more complex code to deal with the difference between operation systems. C is not portable. Your application just crossed over from the "simple" where the stdio "text hack" was enought to make your code work to the "complex" where you are going to have to write your own "hacks" to make it work. Sorry. > Yet, there is this concept of data being "textual", of files being used > in "text-mode", of "text-streams", of NNTP Response Data being > "textual". > > You may not be confident of what they meant by "textual", but I > am: it is whatever difference "r" has from "rb". I am very confident. I also know we changed it years ago. > Text-processing utilities running under DOS/Windows interpret > CTRL-Z as End Of File. This is not something I am making up. > This is not something I can change. > > Don't expect the rest of the world to have the same computer > as you. The world is not one big unix box. That's not the issue. The issue is that USNET is no longer text. It's binary. You will just have to stop using your text tools on Usenet article data. Sorry. > If you are someone who operates an NNTP server, then I am asking you, > "why are you including CTRL-Z in the data? Don't you know that that > means End Of File in DOS/Windows?" I think the answer to that is > obviously "no", maybe "now I do.". I not only operate an NNTP server, I run an NNTP bussiness, and I wrote the NNTP server I operate. I've been writing software for 30 years. I wrote CP/M to Unix coversion utilites back in the 80's before you could even buy a C complier for a CP/M box. I wrote Unix utilites to read CP/M format floppy disks on Unix machines. I developed and sold CP/M to Unix comunication software and CP/M emulators for Unix (MIMIX). I wrote PC to Unix communication tools (PCWorks/UniHost/Macline) to allow Unix and PCs to share data. I created a portable interpreted programming langauge to allow cross-platform application development on Unix and CP/M boxes and had to deal with all the issues of porting data between the two worlds. I wrote a shit load of C code on Version 6 Unix before the stdio package was even created, and many many years before the "DOS text hack" was creates when C and the stdio package migrated to the DOS world. > Here is a shortened version of the pipeline: > > echo 10984 | newsget netnews.attbi.com alt.test some | sed -f fixnews | > decode > > So, you can see that the data is not stored, except as it exists in the > pipeline. > > The problem is that embedded CTRL-Z's cause sed to terminate as > though it reached the End Of File. Data comming out of a NNTP stream is now binary. Fix your "newsget" applcation so it either deals with ^Z somehow, or get a version of sed which doesn't stop on ^Z. > > NNTP data is 8 bit binary data now. Get used to that. It's only going > > to get worse. > > This is not an 8-bit problem. This is a text- vs. binary-mode problem. Yeah, and you are using text tools on a binary stream. Use the right tool for the job. I'm sorry that this may have worked for the past 20 years, but it doesn't any more and the rest of Usenet isn't going to change to fix this for you. > 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. They never were bound by it. Usenet never has worked that way. Usenet is mostly created by people doing whatever they want to. Anything they can "get away with" is OK. Whatever works best is what gets used. All the RFCs and "specs" were writtin after the fact in an attempt to document how Usenet worked, and sometimes in an attempt to "clean things up". But mostly, Usenet seems to have it's own mind in terms of what will happen next. It's very much a mob-rules systems. > > > I would very much like to return to treating the output from NNTP > > > servers as "textual". > > > > Sorry. Those days are gone. Fix your code to deal with Usenet how it > > is or don't call your code "usenset software". > > Interesting... was there a Request For Comments regarding dropping > the "textual" aspect of NNTP data? Yes. It's been talked about over and over and over for years in places like this group. > Gee, I was angry at how YENC was introduced without "going through > channels", but it seems par for the course!! Exactly. That's how Usenet works. There are no "channels". No one is in charge of Usenet. It lives it's own life. Everybody throws in their ideas, and some chatch on and some don't. > It would be much harder than including CTRL-Z as a Critical Character > in the YENC spec. The issue of including CTRL-Z in the yEnc spec is the only one you have a chance of making happen. But there is no committe in charge of that. It's just something Juergen did. And he's the only one you have to convience to make it happen. Don't waste your time asking us, talk to him. If he doesn't want to respond to you, well, that's life. > > BTW, the last time you suggested this I changed my yEnc encoders so > > they escape ^Z for you. But don't ask me to go any further. > > Hey, thanks!! That'll fix it for me!!! > > 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!! And I'd loose most my customers in under a week when all the yEnc posts vanished from my servers. Good try, but it just can't happen. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030105153558.164$QG@newsreader.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54>Show Full Headers
Complete Article Headers
Message-ID: <20030105153558.164$QG@newsreader.com>
Subject: Re: NNTP and YENC
Date: Sun, 05 Jan 2003 20:35:58 +0000
From: curt@kcwc.com (Curt Welch)
References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54>
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!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com =B2Yxs@ndr1gxecV1PqBynR4p/t5cOqLRcRsY9Z9fM5/gq5etl
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 349