🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87187

Re: About compression with NNTP

#87187
From: Michael Baeuerle
Date: Tue, 10 Nov 2015 17:13
27 lines
2485 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> > If high compression levels really will create problems for servers,
> > maybe forbid them in the update of the RFC draft?
> > Or a bit weaker like "not more than level x SHOULD be used"?
> 
> I think even a SHOULD is too strong because a fully compliant server 
> may want to use level 9.  It cannot be declared not RFC-compliant 
> because of that.
> Maybe a cave-at could just be mentioned about that potential issue.

From the 'inflateInit2()' documentation in zlib.h:
| 
| [...] windowBits must be greater than or equal to the windowBits value
| provided to deflateInit2() while compressing, or it must be equal to
| 15 if deflateInit2() was not used.  If a compressed stream with a
| larger window size is given as input, inflate() will return with the
| error code Z_DATA_ERROR instead of trying to allocate a larger window.

Looks like the "intended way" to handle this is to use the zlib
container with the window size field in its header.
Because we want to use the raw format, the decompressor should always
use the maximum window size (-15), or it would not be able to handle
data that was compressed with arbitrary window size.

Technical Details
Message-ID: <AABWQiV44igAADh2.A1.flnews@WStation3.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWN95ofdEAABgy.A1.flnews@WStation1.micha.freeshell.org> <AABWPOnx3uEAABCC.A1.flnews@WStation3.stz-e.de> <n1l1h4$4bb$1@news.trigofacile.com> <AABWPjINJkIAAAOH.A1.flnews@WStation1.micha.freeshell.org> <n1r2o7$qoj$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABWQiV44igAADh2.A1.flnews@WStation3.stz-e.de>
Subject: Re: About compression with NNTP
Date: Tue, 10 Nov 2015 18:13:55 +0100
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWN95ofdEAABgy.A1.flnews@WStation1.micha.freeshell.org> <AABWPOnx3uEAABCC.A1.flnews@WStation3.stz-e.de> <n1l1h4$4bb$1@news.trigofacile.com> <AABWPjINJkIAAAOH.A1.flnews@WStation1.micha.freeshell.org> <n1r2o7$qoj$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.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Lines: 25
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ueWpU20CNz/CwRTBPknCXQneoR6booAe/NLsOM7nu504MZo/bF
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:DWnRr6rJhrmUHTqnbOL1jPkrN18= sha1:wcVq+xb054SjgV6tUvXv5fYmc2M=
Injection-Date: Tue, 10 Nov 2015 17:13:55 -0000
User-Agent: flnews/0.12 (for GNU/Linux)
X-Received-Body-CRC: 3257912982
X-Received-Bytes: 2344