πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87264

Re: draft-murchison-nntp-compress-02

#87264
From: Michael Baeuerle
Date: Sun, 29 Nov 2015 09:35
27 lines
2185 bytes
Julien Γ‰LIE wrote:
> 
> I suggest to add that the news client and the news server MUST NOT 
> reset their internal stream states for decompression during the whole 
> NNTP session.  (It is OK to reset the internal stream state for 
> compression, though.)
> 
> I came across an interoperability issue because of that (I did not 
> always use the same zlib decompression object to decompress the data 
> received in my Python testing script, which led to decompression 
> failures with "invalid distance too far back").

Shouldn't that be dependent on the flush method used by the compressor?

Quoted from "zlib.h":
| 
| If flush is set to Z_FULL_FLUSH, all output is flushed as with
| Z_SYNC_FLUSH, and the compression state is reset so that decompression
| can restart from this point if previous compressed data has been
| damaged or if random access is desired. Using Z_FULL_FLUSH too often
| can seriously degrade the compression.

Looks like it should be possible (if we really want it), but in my tests
the short commands are compressed best with Z_PARTIAL_FLUSH (in this
case the decompressor must preserve its internal state).

Technical Details
Message-ID: <AABWWsKcsJ8AAAGM.A1.flnews@WStation1.micha.freeshell.org>
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: <n229bp$tel$1@news.trigofacile.com> <n3d370$4bg$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABWWsKcsJ8AAAGM.A1.flnews@WStation1.micha.freeshell.org>
Subject: Re: draft-murchison-nntp-compress-02
Date: Sun, 29 Nov 2015 09:35:20 -0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <n229bp$tel$1@news.trigofacile.com> <n3d370$4bg$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
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net hpMaZJ6M0rYB/PU6c1vkvgvj9Tcls6rzXUofbf8arBf7pQXNRw
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:vZbiumgrK/gaoDuO+RxkZdoZsnA= sha1:KYRUwMPEjRxfyz1Jeb3+eAVUUl0=
Injection-Date: Sun, 29 Nov 2015 09:35:20 -0000
User-Agent: flnews/0.12 (for GNU/Linux)
X-Received-Body-CRC: 2432255914
X-Received-Bytes: 2044