🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53531

Re: Header compression - necessary, useful, senseless ?

#53531
From: Jan Ingvoldstad
Date: Sat, 28 Jul 2001 21:49
40 lines
3024 bytes
On Sat, 28 Jul 2001 15:23:05 -0400, "J.B. Moreno"
<planb@newsreaders.com> said:

> OK.  I knew some servers would have problems with it, but 977 doesn't
> forbid it,

Not directly, no.  But RFC 977 considers articles text responses, and
it shouldn't surprise anyone that people would then treat text as a
string of characters, using standard libraries in one's favorite
programming language to do so.  And NUL is the character string
terminator in C, which is a pretty popular language to program things
in.

This is where the general rule of niceness comes into play:

  Be conservative in what you send, but liberal in what you accept.

For those designing news servers, this means that one should try to
accept even text thingies containing unexpected octets, if practically
possible.

But it also means that when we're encoding things, we're supposed to
be conservative, and not expect things to handle everything.

Okay, so a design decision is to scrap whatever is left of
US-ASCIIness for the transfer of binaries.  Should we also scrap those
that consider text in the same way as strlen() in C?


> and escaping it increases the size by another 7% of the
> original.  Not a huge amount, but possibly something to consider.

Yes, it definitely is.  7% is not a very small figure.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Technical Details
Message-ID: <oas3d7gafm0.fsf@tyrfing.ifi.uio.no>
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!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <280720010219054011%planb@newsreaders.com> <20010728045011.114$bX@newsreader.com> <280720011523053214%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <oas3d7gafm0.fsf@tyrfing.ifi.uio.no>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Sat, 28 Jul 2001 21:49:43 +0000
From: Jan Ingvoldstad <jani@ifi.uio.no>
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <280720010219054011%planb@newsreaders.com> <20010728045011.114$bX@newsreader.com> <280720011523053214%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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: KRST, People's Front Against MWM
Lines: 39
NNTP-Posting-Host: tyrfing.ifi.uio.no
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: maud.ifi.uio.no 996356979 20990 129.240.64.16 (28 Jul 2001 21:49:39 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 28 Jul 2001 21:49:39 GMT
X-url: http://www.stud.ifi.uio.no/~jani/
X-Newsreader: Gnus v5.7/Emacs 20.3