🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53487

Re: Header compression - necessary, useful, senseless ?

#53487
From: Curt Welch
Date: Thu, 26 Jul 2001 21:58
45 lines
3164 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> wrote:
> curt@kcwc.com wrote:
>
> >I think the pre-compressed data (for xcover and carticle) should be
> >the data with CR LF at the end of the lines, but not dot-escaped, and
> >with no trailing DOT.
>
> >The 8-bit compressed data would then be dot stuffed as needed (CR LF DOT
> >would be replaced with CR LF DOT DOT).  And the final CR LF before the
> >trailing DOT would NOT be counted as part of the compressed data.

> Why? It would be easier to declare the lenght of the compressed data
> before transmitting it unescaped.

It would only be a little bit easier on the receiving side and completely
unworkable on the sending side to do that.

For that to work you would have to pre-compress all the headers to
calculate the length before you could start sending the first byte - before
you could even send the response since the size would most likely be
included in the response line.  That would suck big time.  You need to
compress and send the headers as you read them.

Do you realize that from some of the large groups in the long retention
servers you are talking hundreds of MB of header data?  No way do you want
to compress that before starting to send the first header.

And a good server will be checking the status of the articles as it's
sending the XOVER data.  If an article expires (or is cancled) in the
middle of a 6 hour header download, the XOVER data shouldn't include the
article just because it was there yesterday when the download started.  So
you can't even get away with pre-compressing blocks and calculating the
size before you start the download.

Using a size count for xover data just wouldn't work.  Using it for
articles could work, but would still be wrong.

> GETSET.

I'll have to look into that.  I've seen it mentioned a few times now.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20010726175821.025$Hd@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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it>

Show Full Headers
Complete Article Headers
Message-ID: <20010726175821.025$Hd@newsreader.com>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Thu, 26 Jul 2001 21:58:21 +0000
From: curt@kcwc.com (Curt Welch)
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it>
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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 2aMf,3k5NYzC,IM,DCiLQaJ3iKynapN9sh+kvLi=1nRWyMiF
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: 44