Article View: news.software.nntp
Article #59517Re: News servers, nntpcache, slrn and the Usenet bug "From ".
From: Curt Welch
Date: Sun, 07 Jul 2002 20:13
Date: Sun, 07 Jul 2002 20:13
59 lines
4201 bytes
4201 bytes
nenosed@apex.met.au wrote: > Curt Welch wrote in <20020706181520.539$fK@newsreader.com>: > > ----snip---- > > > My servers keep some statistics on the accuracy of Lines: headers. > > > > Currently, about 88% of the articles on Usenet have valid Lines: > > headers. About 7% have no Lines: header at all, and the rest (about 5%) > > have Lines: headers with a bogus value. > > > > Of the articles with invalid values in the Lines: header, about 78% of > > those have a value which is 1 less than it should be. > Interesting, Curt. How does your S/W guarantee accurate line counts? It's an NNTP server. NNTP has no confusion about where articles begin and end or about how many lines are in the article. The article ends with the first line which contains only a dot (i.e., DOT CR LF). To prevent a valid line with a lone dot from looking like the end-of-article marker, all lines which begin with a DOT are dot-stuffed. i.e., a dot is added to the begining of the line. So a line which begins ".testing", is sent to the NNTP server as "..testing". The reverse is done when clients read the article from the NNTP server (by the client, not by the server). Within the article, lines are well defined. Each CR LF pair found in the data stream ends a line. Lone CRs or lone LFs, do not end lines. They are just data which is part of another line. It is possible to send a zero length article with NNTP - though it will always be rejected. So the servers need to not only spot "CR LF DOT CR LF" (which is the normal end of article marker), but also spot DOT CR LF as the first characters (line) of the article. The first lines in the article are header lines. The header is followed by a blank line, and then the body. The blank line is not part of the header or the body. You do not need to parse header lines to figure out where the header ends. The blank line defines the end of the header, not the format of the header lines. The Lines: header tells you how many lines are in the body and it does not include the blank line between the header and the body. The body is optional and the blank line between the header and body is also optional for articles with no body. An article with no body has a Lines: header with a value of 0. It's technically possible to send an article with no header as well. But servers will reject it. There is no confusion about how to parse articles or count lines on NNTP servers. On some servers, where articles get converted to local end-of-line conventions, confusion happens - but those servers are broken and are just well known for being broken. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020707161302.204$uL@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!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!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> <slrnaibc7b.3hu.nenosed@arthur.valhalla.net.oz> <GytKsw.GFI@scrum.muc.de> <20020706181520.539$fK@newsreader.com> <slrnaigjod.600.nenosed@arthur.valhalla.net.oz>Show Full Headers
Complete Article Headers
Message-ID: <20020707161302.204$uL@newsreader.com>
Subject: Re: News servers, nntpcache, slrn and the Usenet bug "From ".
Date: Sun, 07 Jul 2002 20:13:02 +0000
From: curt@kcwc.com (Curt Welch)
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> <slrnaibc7b.3hu.nenosed@arthur.valhalla.net.oz> <GytKsw.GFI@scrum.muc.de> <20020706181520.539$fK@newsreader.com> <slrnaigjod.600.nenosed@arthur.valhalla.net.oz>
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!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp,news.software.readers
X-Trace: NewsReader.Com 9G=Gy0,-pkcXbUb8O9gdAS,2qWfnwpWAf+fcfRAlq_lKrpnj
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: 58