Article View: news.software.nntp
Article #81164Re: NNTP Protocol Question
From: Curt Welch
Date: Sun, 31 May 2009 20:15
Date: Sun, 31 May 2009 20:15
89 lines
5922 bytes
5922 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> > wrote: Hi Curt, > > Thanks a lot for your valuable comments! > > > All the largest "farm" servers I know about DON'T have that problem. > > Most of the large farm servers don't split up back ends by group, so > > it's not even an issue for most of them. They split it up by > > message-id so knowing the message-id you are looking for is all the > > front end needs to know to find it. > > When they do that, is it the "hashfeed" system that we have in both > Diablo and (now) INN? (based upon a MD5 hash of the message-ID) Yes, or some variation of the same idea. > > There might well be some NNTP proxy systems that require the group > > first. But if they do exist, they should be thrown away and replaced > > with smarter software that actually works. :) > > :) > > > (Diablo > > doesn't get that correct, becuase it doesn't typically return a valid > > Xref when you fetch by ID, so it's something I've always considered > > broken about Diablo). Diablo however does give you the article, and > > you can get the Newsgroup: list from the article, and then go searching > > each group from the > > article to find the article numbers - which sucks, but at least it > > works and doesn't require a linear search of every group in the active > > file. > > Oh, that's bad. I indeed read in their FAQ: > > 6.5. I sometimes see different headers for the same article, how can > that be? > > This is normal and has to do with the way diablo gets article from > the spool. There are two ways to get an article. You either supply a > message-id directly, or you supply a groupname and article number. > When you supply an article number dreaderd uses the overview database > to translate this to a message-id, but at the same time remembers > other headers from the article that are also available in the > overview database. The Path: header is an example of this. Dreaderd > then fetches the article from the backend spool, and replaces some > article headers with the versions it knows from overview. This was > done because some clients get confused when the last entry in the > Path: header doesn't match the Xref: hostname. When you supply a > message-id directly none of this "munging" is done and you get the > article as it appears on the spoolserver. > > So we get the Xref: header of the server which sent the article to Diablo > when requesting by message-ID. The same goes for the Path: header! Well, it might be smart enough to strip that out for you. I think it does but I'm not sure. Maybe it's the dreaderd front end that does the stripping out when fetched by message-id? Path headers I think might get modified as well by dreaderd when it fetches by message-id. Maybe the newer versions of dreaderd do more than that FAQ says? > Hmmm... It means that Diablo also gets wrong the :bytes metadata they > answer in (X)OVER commands; it would differ between a request by > message-ID or article number! Yeah, but that's historically typical. You can't trust the size number to be accurate. Maybe the new OVER command fixed that, I'm not sure. There was never a clear definition of what size you were supposed to return for xover. There was the raw wire size of the article that includes the CR LF and the extra stuffed dots, there's the size without the dot stuffing, but still using CR LF for line ends. Then there's the size of the article if it has been stored on a unix system where the CR LF was converted to just LF. And for the raw formats, it was never clear if the trailing DOT CR LF should be counted as part of the size or not. Then there are the problems caused by path and xref and other header modifications that often caused the reported size in xover not to match the true size when it was finally downloaded simply becuase some headers would get changed after the point where the article size was calculated. Because of all these issues, you can't really trust the size to be accurate. It should be seen only as a close approximation (unless this has been cleaned up in the new RFC with the OVER command). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20090531161400.754$t9@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!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mailReferences:
<a23aa396-426d-4f14-b9dc-540da7da4027@n8g2000vbb.googlegroups.com> <gvhd9o$d6j$1@news.httrack.net> <7881uoF1k3o2lU1@mid.individual.net> <gvml6j$8bj$1@news.trigofacile.com> <20090530011921.790$hv@newsreader.com> <gvqr93$5mg$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <20090531161400.754$t9@newsreader.com>
Subject: Re: NNTP Protocol Question
Date: Sun, 31 May 2009 20:15:13 +0000
From: curt@kcwc.com (Curt Welch)
References: <a23aa396-426d-4f14-b9dc-540da7da4027@n8g2000vbb.googlegroups.com> <gvhd9o$d6j$1@news.httrack.net> <7881uoF1k3o2lU1@mid.individual.net> <gvml6j$8bj$1@news.trigofacile.com> <20090530011921.790$hv@newsreader.com> <gvqr93$5mg$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!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.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 BJkiemp,7gV3gbfc/rndbklw/YRd7D7WYgD.T3f6yCC0Gh
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: 89
NNTP-Posting-Host: 77247f26.nr5-q1.newsreader.com
X-Trace: DXC=R=9F; Rh7O8Bbc7WojO; MIIbgZaH`e<A[IZ?:i9<JJBSNYhPDg=j_RbCiJ;
iV2YAoGE\WC`X2_66^DmG5`4T4TGcJ
X-Complaints-To: abuse@newsreader.com