🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87272

Re: draft-murchison-nntp-compress-02

#87272
From: Michael Baeuerle
Date: Wed, 02 Dec 2015 11:38
32 lines
2629 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> > I have tested both variants in flnews and Z_PARTIAL_FLUSH was better for
> > small data blocks like commands.
> [...]
> > Viewed from the interoperability point, anything except Z_FULL_FLUSH
> > will require some knowledge on the opposite side to work (please correct
> > me if this is wrong). In this case Z_SYNC_FLUSH don't solve the problem
> > (and always using Z_FULL_FLUSH would result in bad compression ratios).
> > But because zlib is so ubiquitous (and NNTP don't require compression to
> > work), IMHO it is acceptable to explicitly define a zlib flush method to
> > be used for the DEFLATE algorithm.
> 
> Then let's explicitly require Z_PARTIAL_FLUSH to be used, as it saves a 
> few bytes.
> 
> Are we sure that implementations of DEFLATE (other than zlib) know 
> partial flushes?
> RFC 1951 does not mention partial or sync flushes...

Why not specify it the way it was done for SSH?
<https://tools.ietf.org/html/rfc4253#section-6.2>
(only the flush related stuff, not the zlib container)

The other option to use Z_SYNC_FLUSH and manually strip (on TX) and
append (on RX) the terminating "00 00 FF FF" sequence looks more
complicated for me. Z_PARTIAL_FLUSH should be simpler and "good enough"
for NNTP. If the data stream lost sync, the connection should be
terminated.

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

Show Full Headers
Complete Article Headers
Message-ID: <AABWXtQCnL0AAAo3.A1.flnews@WStation3.stz-e.de>
Subject: Re: draft-murchison-nntp-compress-02
Date: Wed, 2 Dec 2015 12:38:41 +0100
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <n229bp$tel$1@news.trigofacile.com> <n3d370$4bg$1@news.trigofacile.com> <AABWWsKcsJ8AAAGM.A1.flnews@WStation1.micha.freeshell.org> <n3fgba$vh4$1@news.trigofacile.com> <AABWW0vIXqsAAEWe.A1.flnews@WStation4.micha.freeshell.org> <n3fntl$8nu$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: 30
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 OP3/JT3GfBtCsnSEziY/fA0tXsmwzDx1LbT50zDddhfZyLRWub
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:+5m/0C5/J04EIRhz9+dhqST/+Uw= sha1:VvsgU2joF4ifcDEbVxjQmO2LhIY=
Injection-Date: Wed, 2 Dec 2015 11:38:41 -0000
User-Agent: flnews/0.12 (for GNU/Linux)
X-Received-Body-CRC: 1703253321
X-Received-Bytes: 2488