🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87070

Re: About compression with NNTP

#87070
From: Julien ÉLIE
Date: Wed, 14 Oct 2015 19:31
79 lines
3944 bytes
Hi Michael,

>> So the question is:  are there news clients willing to implement the
>> COMPRESS command described in Ken's draft?
>>      http://tools.ietf.org/id/draft-murchison-nntp-compress-01.html
>
> Yes.
>
>> If there are, then I can consider having a look to implement it in INN.
>> And probably afterwards we can try to get a revision of Ken's draft
>> published as RFC.
>
> +1 from me for implementing it.

I received a private comment highlighting the fact that the COMPRESS 
command, as described in that draft, is not necessarily straight-forward 
to implement in all existing software.  The reason is that the mandatory 
use of deflate() from zlib implies that NNTP software can cope with 
0-bytes in the stream.  Which is not always the case.

Another idea would be to do what a few software have already implemented 
regarding compression:  the XZVER and XZHDR commands, using yEnc 
compression.
     http://helpdesk.astraweb.com/index.php?_m=news&_a=viewnews&newsid=9


Well, maybe we could be more generic and allow the use of compression 
for any multi-line data blocks?

A suggestion could be that a client asks for the compression of the 
result of a few commands.  For instance, a client may ask that OVER 
answers are compressed with yEnc and LIST answers with deflate.  It 
could send the following two commands:

STARTCOMPRESSION OVER YENC
STARTCOMPRESSION LIST DEFLATE

The server will respond with the appropriate response codes, and then 
compress the answers to LIST and OVER commands accordingly.

Note that the name of STARTCOMPRESSION is chosen out of homogeneity with 
STARTTLS.

A client may also ask to send compressed data itself.  For instance with:

STARTCOMPRESSION POST YENC
STARTCOMPRESSION TAKETHIS YENC
(the latter being useful for peers)




The server advertises the STARTCOMPRESSION capability followed with the 
compression methods it can use, as keywords of the capability.


Any thoughts about that?
Wouldn't it be an alternative that would be adopted more easily than 
COMPRESS?



> With the COMPRESS extension it would be possible to open the NNTPS
> connection (with compression disabled), then execute AUTHINFO and
> finally execute COMPRESS. In this case the authentication step is not
> compressed and cannot suffer from any potential encryption vulerability
> that is based on the compression.

That's indeed the common scenario that the command would solve: 
enabling compression only after authentication.

-- 
Julien ÉLIE

« – Essayons d'interroger ce garde habilement sans éveiller ses
     soupçons…
   – Hep ! Où est enfermé Assurancetourix ? » (Astérix)

Technical Details
Message-ID: <mvmahl$iou$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: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <mvmahl$iou$1@news.trigofacile.com>
Subject: Re: About compression with NNTP
Date: Wed, 14 Oct 2015 21:31:01 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.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
Newsgroups: news.software.nntp
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, 14 Oct 2015 19:31:01 +0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-254-125.w86-212.abo.wanadoo.fr:86.212.141.125";
 logging-data="19230"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.3.0
In-Reply-To: <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de>
X-Received-Body-CRC: 2029490532
X-Received-Bytes: 3905