🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87179

Re: About compression with NNTP

#87179
From: Michael Baeuerle
Date: Fri, 06 Nov 2015 18:14
69 lines
3356 bytes
Michael Baeuerle wrote:
> 
> Detection of the COMPRESS capability and the DEFLATE method offered
> by INN seems to work now:
> ------------------------------------------------------------------------
> [...]
> ------------------------------------------------------------------------
> 
> TLS and AUTH were disabled for this test. 
> 
> zlib detection and linking in the build system is now present too.

Now it seems to work with TLS and AUTH too:
------------------------------------------------------------------------
[Using NNTP protocol driver]
[=> Connect to news.trigofacile.com:nntps]
[Established encrypted connection using TLSv1 protocol with cipher suite DHE-RSA-AES256-SHA]
[<= Expect X509 certificate]
[...]
[Server certificate verification successful]
[<=] 200 news.trigofacile.com InterNetNews NNRP server INN 2.7.0 (20151028 prerelease) ready (no posting)
[=>] CAPABILITIES
[<=] 101 Capability list:
[<= Expect multiline data block]
VERSION 2
IMPLEMENTATION INN 2.7.0 (20151028 prerelease)
AUTHINFO USER SASL
COMPRESS DEFLATE
HDR
LIST ACTIVE ACTIVE.TIMES COUNTS DISTRIB.PATS DISTRIBUTIONS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS
NEWNEWS
OVER
POST
READER
SASL GSSAPI OTP PLAIN NTLM LOGIN DIGEST-MD5 CRAM-MD5
[Switch to NNTP V2 (RFC3977) mode]
[=>] AUTHINFO USER test
[<=] 381 Enter password
[=>] AUTHINFO PASS ********
[<=] 281 Authentication succeeded
[=>] CAPABILITIES
[<=] 101 Capability list:
[<= Expect multiline data block]
VERSION 2
IMPLEMENTATION INN 2.7.0 (20151028 prerelease)
COMPRESS DEFLATE
HDR
LIST ACTIVE ACTIVE.TIMES COUNTS DISTRIB.PATS DISTRIBUTIONS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS
OVER
POST
READER
SASL GSSAPI OTP PLAIN NTLM LOGIN DIGEST-MD5 CRAM-MD5
[Switch to NNTP V2 (RFC3977) mode]
[=>] COMPRESS DEFLATE
[<=] 403 Work in progress...
[Enabling compression failed]
[=>] GROUP trigofacile.test
[<=] 211 483 7 542 trigofacile.test
------------------------------------------------------------------------


I have configured the compressor part of zlib like this:
| 
| deflateInit2(strm, Z_BEST_COMPRESSION, Z_DEFLATED, -15, 9, Z_DEFAULT_STRATEGY);
                                                     ^^^
The negative sign should give a raw data stream without zlib container
(header, dictionary and checksum).

Technical Details
Message-ID: <AABWPOnx3uEAABCC.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: <mvjp3s$n0u$1@news.trigofacile.com> <AABWN95ofdEAABgy.A1.flnews@WStation1.micha.freeshell.org>

Show Full Headers
Complete Article Headers
Message-ID: <AABWPOnx3uEAABCC.A1.flnews@WStation3.stz-e.de>
Subject: Re: About compression with NNTP
Date: Fri, 6 Nov 2015 19:14:52 +0100
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWN95ofdEAABgy.A1.flnews@WStation1.micha.freeshell.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
Lines: 67
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net m00EsXfjaqmJOzk96oUXGQQigESzPSZabBPTvMXyNY4tIzeylK
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:W7tbhBok+o+cHrwwrwv4oQIMmLk= sha1:x1O/9pvQxs6fal2oT7G82CNVsXE=
Injection-Date: Fri, 6 Nov 2015 18:14:52 -0000
User-Agent: flnews/0.12 (for GNU/Linux)
X-Received-Body-CRC: 4150016387
X-Received-Bytes: 3215