Article View: news.software.nn
Article #3278Re: Lines header?
From: Robert Elz
Date: Sun, 25 Oct 1992 00:38
Date: Sun, 25 Oct 1992 00:38
60 lines
3796 bytes
3796 bytes
In <bjN1Vm`{@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
| Should NN generate a Lines: header for each outgoing article?
| Pro:
| 2. Some deficient newsreaders can't count lines themselves.
Its not deficient newsreaders, its whether every reader should have
to read every article, or whether a few bytes should be added by
the poster, once, rather than recalculated by ever reader.
| Con:
| 3. It increases all news sites' transmission and storage costs.
By a trivial amount, the largest Lines header you're likely to see
is 11 bytes on disc, and 12 bytes NNTP transfer, (less in a compressed
uucp batch) if saving that number of bytes is really worth some effort,
it would be better spent in eliminating some redundant references from
the References header (go look at this article, eliminating just one would
save far more than the Lines: header costs) or avoiding the truly useless
headers (your article said "Sender: usenet@twinsun.com" which truly provides
lots of useful information... - this one probably says something similar)
| 4. The benefit noted in (1) is small, since the article body
| is typically already in main memory.
The vast majority of articles are truly small, so, at least if you're
not using NNTP, this is probably true, and the cost of counting the
newlines is pretty small for those - but if you look at the stats on
the total volume of bytes you'd have to read, you see that about 25%
of all the bytes are in big (>16Kb) articles [uunet stats] - all that
data isn't in memory already - so at least 25% of the data you have to
read won't be in memory already, and given that its likely to be read
lots of times - once per user, that can be quite a bit of extra overhead.
| The complaints I see about ``missing'' Lines: headers come from NN users.
That's mostly because its NN that makes it so obvious when the Lines
header is missing - and demonstrates how important that users consider
the information.
The only truly good argument against Lines: was the old one about the
information being useless, as B news sites tend to mess around with
either the article body so much, or with the Lines header, or both,
that the information is useless anyway. With B news use declining rapidly
this argument no longer has a lot of force.
On the contrary, Lines headers now can be useful in helping preventing
the spread of articles truncated somehow - INN can be configured to
count the lines as it receives the article (its doing all the work
anyway, as it has to change the NNTP end of line \r\n into just \n)
and compare it against the Lines header - if the count is wrong by more
than a configureable amount, the article will be rejected, and we
wait for a better (intact) copy. (This is optional so sites without
redundant feeds can just take the article anyway). Truncated articles
aren't common, but they can happen, and there's currently (excluding
INN) no protection at all.
kre
Technical Details
Message-ID:
<9229911.26997@mulga.cs.mu.OZ.AU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!munnari.oz.au!cs.mu.OZ.AU!cs.mu.oz.au!kreReferences:
<1992Oct17.204328.20406@gallant.apple.com> <axolotl.719639714@syzygy> <1992Oct21.163437.235@sunb10.cs.uiuc.edu> <bjLGwi^7@twinsun.com> <1185@jagubox.gsfc.nasa.gov> <bjN1Vm`{@twinsun.com>Show Full Headers
Complete Article Headers
Message-ID: <9229911.26997@mulga.cs.mu.OZ.AU>
Subject: Re: Lines header?
Date: Sun, 25 Oct 1992 00:38:47 GMT
From: kre@cs.mu.oz.au (Robert Elz)
References: <1992Oct17.204328.20406@gallant.apple.com> <axolotl.719639714@syzygy> <1992Oct21.163437.235@sunb10.cs.uiuc.edu> <bjLGwi^7@twinsun.com> <1185@jagubox.gsfc.nasa.gov> <bjN1Vm`{@twinsun.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!munnari.oz.au!cs.mu.OZ.AU!cs.mu.oz.au!kre
Newsgroups: news.software.nn
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
Lines: 59