Article View: news.software.nntp
Article #59533Re: News servers, nntpcache, slrn and the Usenet bug "From ".
From: J.B. Moreno
Date: Tue, 09 Jul 2002 04:42
Date: Tue, 09 Jul 2002 04:42
38 lines
3175 bytes
3175 bytes
itsy bitsy meowbot <53ab2750@meowing.net> wrote: > Kjetil Torgrim Homme wrote: > > > > [itsy bitsy meowbot]: -snip- > >> The byte count in an rnews header should count a line ending as > >> one character, regardless of how it is physically represented. > > > > noooo! that's really broken :-( > > In fairness, the UU in UUCP does imply a specific line ending convention > where that assumption makes perfect sense. The brokenness crept in > with ports to other platforms that ignored this reality. Too bad no one > thought at the outset to put that detail in writing :/ > > > ugh. so the algorithm is: read the N bytes specified, count the > > number of CR LF's found (make sure you cover the case where the chunk > > read ends with CR), then read that many extra bytes, and repeat. > > ugly, ugly, ugly. -snip- > There is also the dumb-as-rocks approach used for a long time by INN, > that seemed to work well enough in practice. It simply assumed that the > whole world used Unix line endings, and too bad if you didn't. If you wanted only a slightly smarter routine you could test and see whether or not the newline character takes up more than one byte and barf if it does. Really, no matter how you go about it it'll probably work most of the time and when it doesn't work, you can probably fix the problem simply by transfering the file via a different method -- JBM "Your depression will be added to my own" -- Marvin of Borg
Technical Details
Message-ID:
<1ff12np.1edbmtj1es2d72N%planB@newsreaders.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!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-104.person.NET!not-for-mailReferences:
<slrnaiaghh.333.nenosed@arthur.valhalla.net.oz> <87eleisdsw.fsf@erlenstar.demon.co.uk> <slrnaib0fg.3b6.nenosed@arthur.valhalla.net.oz> <DNhV8.6017$xf3.1063173@news11-gui.server.ntli.net> <ylbs9mnq1p.fsf@windlord.stanford.edu> <slrnaicuao.4d2.nenosed@arthur.valhalla.net.oz> <1fewk95.1evu0x518r39cqN%planB@newsreaders.com> <1rpty0vcq1.fsf@sex.ifi.uio.no> <3D27665A.4080106@meowing.net> <1rhejcv3gy.fsf@sex.ifi.uio.no> <3D2784F0.60509@meowing.net>Show Full Headers
Complete Article Headers
Message-ID: <1ff12np.1edbmtj1es2d72N%planB@newsreaders.com>
Subject: Re: News servers, nntpcache, slrn and the Usenet bug "From ".
Date: Tue, 9 Jul 2002 00:42:16 -0400
From: planB@newsreaders.com (J.B. Moreno)
References: <slrnaiaghh.333.nenosed@arthur.valhalla.net.oz> <87eleisdsw.fsf@erlenstar.demon.co.uk> <slrnaib0fg.3b6.nenosed@arthur.valhalla.net.oz> <DNhV8.6017$xf3.1063173@news11-gui.server.ntli.net> <ylbs9mnq1p.fsf@windlord.stanford.edu> <slrnaicuao.4d2.nenosed@arthur.valhalla.net.oz> <1fewk95.1evu0x518r39cqN%planB@newsreaders.com> <1rpty0vcq1.fsf@sex.ifi.uio.no> <3D27665A.4080106@meowing.net> <1rhejcv3gy.fsf@sex.ifi.uio.no> <3D2784F0.60509@meowing.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!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-104.person.NET!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: NetNews BOFH wannabe
Lines: 37
NNTP-Posting-Host: ppp-104.person.net (166.82.184.104)
X-Trace: fu-berlin.de 1026189552 21904704 166.82.184.104 (16 [22426])
X-Orig-Path: planB
X-Face: "*4TQEWDl_e1\+\A$>04o`TR*>G^B(PT\pN%uvAosT28o\KmXuo]FCxndjXgV,}y<o*B]5'WmZJKChD68?8M'k2Q>%G$/Og~tSyAe0s}+=(#W^nqx;iv^j2ppLwI1vpX=my%PA%e#U3KEW!F1-y.}gS+{}S!/}*9:d,@CvZe6b?T>e.2@kyhJhO_<wql2S&}E^r_J}hS>|>ON]Es"sja/VKp^%eAk^`?o;{lS
Mail-Copies-To: nobody
X-URL-Face: <news:Xns911F66006B1110279amud@167.206.112.134>
User-Agent: MacSOUP/2.4.4