Article View: news.software.nntp
Article #29852Re: Content-Transfer-Encoding: binary
From: Curt Welch
Date: Thu, 16 Jul 1998 00:00
Date: Thu, 16 Jul 1998 00:00
67 lines
4488 bytes
4488 bytes
usenet@oneill.net (Clayton O'Neill) wrote: > If I were downloading mb's of binaries at 28.8 or 33.6 I think I'd > switch. Hell, people went out and bought 33.6 and 56k modems for less > gain in many cases. Well, yes, a 25% increase in performance is enough to justify some effort. But because it requires us to first get a large number of transports working, then to get a large number of readers working, then to convence people to post in binary even though some percentage of the transports and readers won't be able to deal with the message. I don't think the performance boost and disk savings is enough to encourage all this to happen (at least not any time soon). And disk space and bandwidth can be saved using compression so that reduces the need to make binary postings work. And modems do compression now so what happens when you send binary data instead of uuencoded data over that link? How much faster does it really go for the end user? > INN 2.0, Cyclone and Typhoon treat the article body as a bytestream. > They only do \r\n. escaping and \r\n.\r\n detection, and do that on a > byte stream basis, not a line per line bases. INN 2.0 might do that for IHAVE/TAKETHIS, but it (nnrpd) doesn't do it for POST commands. see READline() in nnrpd/misc.c. Clearly though, that could be fixed as well. But it would have to be done before we could ever expect newsreaders to try posting binary data. Also, even if the data is processed as a binary stream the NNTP end-of-data marker '\r\n.\r\n' assumes that the first \r\n is part of the data - and there's no getting around that. i.e. anything you try to send will end up with a \r\n on the end of it whether you wanted it or not. This means a single part mime post of type binary will get a \r\n added to the end of the article (after the data) when it really shouldn't be there. The HTTP POST command has suffered from the same historic problem and it's caused no end of bugs. Old servers expected a CR LF after the data so clients send it, but new servers don't need it to be there, but if they don't suck up the extra two bytes that clients send you get performance issues. And then when servers started sending resets to close the connection quickly (after the data but before eating the extra CR LF) this triggerd a bug in the way some Microsoft libraries sent post data (the connection could get killed before the \r\n was sent - which cuased connection error messages to pop up - but only on large posts where the \r\n ended up in a separate TCP packet. etc. etc. If you try to pretend that NNTP "works" for sending arbitrary binary data and ignore this issue, you are likely to end up with similar interoperation bugs between servers and clients. > This isn't an RFC977 issue at all. IMHO, it's an RFC1036. NNTP should > not care at all about the body of what it's transporting. That would be nice, but the \r\n.\r\n stuff means it does (at least the last two characters). There's no getting around this without changing the protocol. Not to mention the fact that way the NNTP RFC is written people will naturally tend to assume it's a line orented protocol and write code that will not work correctly for binary data (especially newsreader authors). If we want to send binary data in posts I'm pretty sure a re-write of the RFCs is going to be required before we can make it work. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19980716150402.778$Yo@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!not-for-mailReferences:
<slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <19980716134243.087$lx@newsreader.com> <slrn6qsfdi.8b9.usenet@hmmm.colo.erols.net>Show Full Headers
Complete Article Headers
Message-ID: <19980716150402.778$Yo@newsreader.com>
Subject: Re: Content-Transfer-Encoding: binary
Date: Thu, 16 Jul 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <19980716134243.087$lx@newsreader.com> <slrn6qsfdi.8b9.usenet@hmmm.colo.erols.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: 372109789
X-User: Curt@NewsReader.Com
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
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.readers,news.software.nntp