🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87556

Re: NNTP COMPRESS extension

#87556
From: Julien ÉLIE
Date: Wed, 30 Nov 2016 21:35
67 lines
3756 bytes
Hi Dieter,

>> News clients and servers wishing to implement the NNTP COMPRESS
>> extension can go ahead with the following document:
>>
>>     https://www.ietf.org/id/draft-murchison-nntp-compress-06.txt
>
> I note that section 2.2.1 lists three responses.  Section 2.2.2
> indicates two more responses (501 and 503) in the text which are not
> among those three listed.  Should they be added?

Well, I don't think all the responses codes need being indicated in 
Section 2.2.1.
You can for instance see that 501 is mentioned in Section 2.3.2 of RFC 
4644, but not in Section 2.3.1.  Same thing for 400 in Section 2.5.2 of 
RFC 4644.

In RFC 3977, only 215 is listed in Section 7.6.1.1 whereas 501 and 503 
are also mentioned in Section 7.6.1.2.  We are in the same case here for 
COMPRESS.



> I also note that the authors have chosen NOT to allow compression to be
> turned off (with a "COMPRESS OFF" command).  I assume that turning off
> compression during a connection was considered and rejected for some
> reason.

That's not right.
Compression can be turned off by setting the compression level to 0 at 
any time during the session.  The server (as well as the client) can 
decide to no longer compress the data it sends.  It is especially useful 
when sending incompressible data.

See Section 1:

    the compression level can
    be dynamically adjusted and optimized at any time during the
    connection, which even allows to disable compression for certain
    commands, if need be.

and Section 4:

    A server can improve downstream compression and the CPU efficiency
    both of the server and the client if it adjusts the compression level
    (e.g., using the deflateParams() function in zlib) at the start and
    end of large non-text multi-line data blocks (before and after
    'content-lines' in the definition of 'multi-line-data-block' in
    [RFC3977] Section 9.8).  It permits to avoid trying to compress
    incompressible attachments.

    A very simple strategy is to change the compression level to 0 at the
    start of an incompressible multi-line data block, for instance when
    encoded using yEnc [yEnc], and to keep it at 1-5 the rest of the
    time.  More complex strategies are of course possible, and
    encouraged.


I hope it answers your question.
Thanks for having taken time to have a look at the document.

-- 
Julien ÉLIE

« Love is blind but marriage is an eye-opener. »

Technical Details
Message-ID: <o1nglf$6bd$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
References: <o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <o1nglf$6bd$1@news.trigofacile.com>
Subject: Re: NNTP COMPRESS extension
Date: Wed, 30 Nov 2016 22:35:29 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.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
Newsgroups: news.software.nntp,news.software.readers
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 30 Nov 2016 21:34:39 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb08012ff800591b9972dfe041ed.ipv6.abo.wanadoo.fr:2a01:cb08:12f:f800:591b:9972:dfe0:41ed";
 logging-data="6509"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0)
 Gecko/20100101 Thunderbird/45.5.0
In-Reply-To: <o1j838$267$1@snarked.org>
X-Received-Bytes: 3694
X-Received-Body-CRC: 42613268