Article View: news.software.readers
Article #261229Re: NNTP COMPRESS extension
From: D. Stussy
Date: Fri, 02 Dec 2016 00:28
Date: Fri, 02 Dec 2016 00:28
69 lines
4026 bytes
4026 bytes
"Julien ΓLIE" wrote in message news:o1nglf$6bd$1@news.trigofacile.com...
>> 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.
------------
I did not assume a "level 0" compression (or lack thereof) because some
compression methods (other than deflate/zlib) may not support variable
levels. Also, such a level is not equivalent to no compression (a NULL) as
it still must have headers that indicate a value of zero, and thus overhead.
NULL would have no overhead.
Technical Details
Message-ID:
<o1qf7g$9jj$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-mailReferences:
<o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.org> <o1nglf$6bd$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <o1qf7g$9jj$1@snarked.org> Subject: Re: NNTP COMPRESS extension Date: Thu, 1 Dec 2016 16:28:30 -0800 From: "D. Stussy" <spam@spam.org> References: <o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.org> <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 Newsgroups: news.software.nntp,news.software.readers Reply-To: "D. Stussy" <newsgroups+replies@kd6lvw.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 8bit Injection-Date: Fri, 2 Dec 2016 00:28:32 +0000 (UTC) Injection-Info: snarked.org; posting-host="nv-184-1-11-211.dhcp.embarqhsd.net:184.1.11.211"; logging-data="9843"; mail-complaints-to="newsmaster+complaints@snarked.org" X-MIMEOLE: Produced By Microsoft MimeOLE V15.4.3538.513 X-No-Archive: Yes X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 In-Reply-To: <o1nglf$6bd$1@news.trigofacile.com> X-Received-Body-CRC: 3594466352