Article View: news.software.nntp
Article #80674Re: basic nntp connections question
From: Curt Welch
Date: Thu, 23 Apr 2009 00:21
Date: Thu, 23 Apr 2009 00:21
72 lines
5275 bytes
5275 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> > wrote: Hi Curt, > > > I don't know how this > > issue is currently dealt with in the RFCs, but that's my view of how it > > should be done. > > It should be tackled in an NNTP extension. > > Otherwise RFC 3977 states: > > A multi-line data block is used in certain commands and responses. > It MUST adhere to the following rules: > > 1. The block consists of a sequence of zero or more "lines", each > being a stream of octets ending with a CRLF pair. Apart from > those line endings, the stream MUST NOT include the octets NUL, > LF, or CR. > > [...] > > Note that texts using an encoding (such as UTF-16 or UTF-32) that may > contain the octets NUL, LF, or CR other than a CRLF pair cannot be > reliably conveyed in the above format (that is, they violate the MUST > requirement above). However, except when stated otherwise, this > specification does not require the content to be UTF-8, and therefore > (subject to that same requirement) it MAY include octets above and > below 128 mixed arbitrarily. > > And also note that RFC 5322 which deals with the Internet message format > mentions: > > Finally, certain characters that were formerly allowed in messages > appear in this section. The NUL character (ASCII value 0) was once > allowed, but is no longer for compatibility reasons. > > Amusing they now disallow them (it sounds like a regression). Yeah, I think the decision to regress was made in order to clean things up. There are some nasty bugs that crept into Usenet because of the fact that servers dealt with these issues differently. A server should be able to correctly receive articles that have NUL and lone CR or LFs but should not sent it to peers if it's following this new formal approach. There are are valid reasons to prevent CR or LF or NUL from showing up in articles that get copied all over public Usenet (including over protocols other than NNTP), there's absolutely no reason I know of (other than to simplify the RFC itself) to put it in the spec as a requirement for ALL command responses because there is absolutely no technical reasons to do that. It's not like some versions of TCP can't transport a lone CR or a NUL. If you want to define a custom command that returns raw compressed 8 bit binary data in some standard compression format and simply specify the trailing CR LF is not part of the compressed data, there is no reason for the standard to block that as an illegal extension. All good IO routines that read the data in news servers have to be written to support it already. All the spec should say about the return value (in my view) is that none of the return values from any of the commands defined in the current RFC are allowed to produce it. It shouldn't attempt to block those three characters from all possible extensions in my view. The small context you quoted above doesn't make it obvious what spec is trying say there but it looks questionable to me. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20090422201753.992$Su@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mailReferences:
<gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com> <gsah2r$94p$1@news.trigofacile.com> <gsahhb$9ir$1@news.trigofacile.com> <gsb4hm$p61$1@news4.rz.uni-karlsruhe.de> <gsc12f$mbc$1@news.trigofacile.com> <gsdi70$orf$1@news4.rz.uni-karlsruhe.de> <gsdmd8$fct$1@news.trigofacile.com> <gslg8m$uqr$1@news4.rz.uni-karlsruhe.de> <gsmbpt$vrl$1@news.trigofacile.com> <gsml6l$chq$1@news4.rz.uni-karlsruhe.de> <gsnmu1$7v2$1@news.trigofacile.com> <gsnpfh$quc$1@news4.rz.uni-karlsruhe.de> <20090422155433.725$kP@newsreader.com> <gsnvkn$fui$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <20090422201753.992$Su@newsreader.com>
Subject: Re: basic nntp connections question
Date: Thu, 23 Apr 2009 00:21:05 +0000
From: curt@kcwc.com (Curt Welch)
References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com> <gsah2r$94p$1@news.trigofacile.com> <gsahhb$9ir$1@news.trigofacile.com> <gsb4hm$p61$1@news4.rz.uni-karlsruhe.de> <gsc12f$mbc$1@news.trigofacile.com> <gsdi70$orf$1@news4.rz.uni-karlsruhe.de> <gsdmd8$fct$1@news.trigofacile.com> <gslg8m$uqr$1@news4.rz.uni-karlsruhe.de> <gsmbpt$vrl$1@news.trigofacile.com> <gsml6l$chq$1@news4.rz.uni-karlsruhe.de> <gsnmu1$7v2$1@news.trigofacile.com> <gsnpfh$quc$1@news4.rz.uni-karlsruhe.de> <20090422155433.725$kP@newsreader.com> <gsnvkn$fui$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com eVeqqd, vKB7i0cp+lxqa_rc@017qB5GmERf+fcfRAcWa-2O0h+
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: 72
NNTP-Posting-Host: 47fba59c.nr5-q1.newsreader.com
X-Trace: DXC=; 5O5<IPaEmF2A5DSTS0bnBbgZaH`e<A[IZ?:i9<JJBSNKkRUo]=ZgXLiJ;
iV2YAoGEifnTf9O[TbI; `O?VRPC2mA
X-Complaints-To: abuse@newsreader.com