Article View: news.software.nntp
Article #87209Re: About compression with NNTP
From: Ken Murchison
Date: Thu, 12 Nov 2015 19:26
Date: Thu, 12 Nov 2015 19:26
83 lines
4395 bytes
4395 bytes
On 11/12/2015 02:04 PM, Julien ΓLIE wrote: > Hi Ken, > >>>> The only counter-arguments I would have is the fact that >>>> STARTCOMPRESSION could be read as "straight after the successful >>>> response of the server, every exchange is compressed". >>>> And, in case it could be useful for clients, we could define >>>> ENDCOMPRESSION, that purely removes compression. >>> >>> This syntax IMHO looks nice (for a protocol like NNTP, that is designed >>> to be human readable too), but is more complicated. I think we should >>> only use it if the option "END" is really required. >> >> Agreed, is there an actual use case for disabling compression once it >> has been enabled? > > The only use case I see is for news readers dedicated to binaries. > Some of them have implemented the XZVER and XZHDR commands to > respectively download compressed overview and headers. > http://helpdesk.astraweb.com/index.php?_m=news&_a=viewnews&newsid=9 > > Afterwards, article bodies are downloaded with normal ARTICLE or BODY > commands, without compression. The bodies are already in a compressed > form (using for instance yEnc). > > The client is therefore actor of the compression it wants. > (Whereas the text that previously was in Section 3 of the first > version of the draft regarding binary and uncompressible attachments > was server-oriented. Maybe it was the reason why the text was > removed, or maybe because it was not generic enough.) > > > A possible use case would then be: > > STARTCOMPRESSION > GROUP my.group > OVER 1000- > ENDCOMPRESSION > ARTICLE 1000 > ARTICLE 1001 > [...] > STARTCOMPRESSION > GROUP my.group2 > OVER 7000- > ENDCOMPRESSION > ARTICLE 7000 > ARTICLE 7001 > [...] > > > XZVER and XZHDR would then no longer be needed. > > > >> If the client wants to stop compression (or TLS) on a particular >> connection, it can simply QUIT and open a new connection. > > It is true that the client could do that with COMPRESS, or also open > several parallel connections (one compressed to download overview, > others uncompressed to download articles). > > Could a sentence mention that use case in the draft? (something > basically saying "the unstandardized XZVER and XZHDR commands can be > efficiently replaced with COMPRESS") > I'm actually not sure I care about interoperability with non-standard extensions. That being said, if a client does do COMPRESS + XZVER, the server should be smart enough to either disable/reject the XZ* commands or to set the compression level to 0 at the COMPRESS layer for the XZ* responses. I thought the text that was removed was generic enough (for both POST and BODY, etc) but maybe not. I will have to dig around the ietf-nntp mailing list to see what the issue was with that text. -- Kenneth Murchison Principal Systems Software Engineer Carnegie Mellon University
Technical Details
Message-ID:
<n22p5l$fep$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-mailReferences:
<mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <mvrm9s$i1l$1@news.trigofacile.com> <AABWIitSev0AAEcG.A1.flnews@WStation4.micha.freeshell.org> <n1vrgu$6fj$1@news.trigofacile.com> <AABWRFK5oaAAAAm3.A1.flnews@WStation3.stz-e.de> <n21ts0$gpr$1@news.trigofacile.com> <n22ns0$e1i$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <n22p5l$fep$1@news.trigofacile.com> Subject: Re: About compression with NNTP Date: Thu, 12 Nov 2015 14:26:44 -0500 From: Ken Murchison <murch@andrew.cmu.edu> References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <mvrm9s$i1l$1@news.trigofacile.com> <AABWIitSev0AAEcG.A1.flnews@WStation4.micha.freeshell.org> <n1vrgu$6fj$1@news.trigofacile.com> <AABWRFK5oaAAAAm3.A1.flnews@WStation3.stz-e.de> <n21ts0$gpr$1@news.trigofacile.com> <n22ns0$e1i$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 Organization: Carnegie Mellon University Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 12 Nov 2015 19:26:45 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="Ken"; posting-host="cpe-76-180-151-43.buffalo.res.rr.com:76.180.151.43"; logging-data="15833"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <n22ns0$e1i$1@news.trigofacile.com> X-Received-Body-CRC: 783333681 X-Received-Bytes: 4420