πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87093

Re: About compression with NNTP

#87093
From: Russ Allbery
Date: Mon, 19 Oct 2015 21:07
36 lines
2724 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> As far as I understand, the issue is for news software still using
> fputs()/fgets() instead of read()/write() on sockets.  Adding support
> for either TLS or compression is not that easy for them.

Ah, indeed, that's true, although it can probably be addressed by
replacing fputs/fgets with wrappers that expose the same API but use
read/write under the hood and understand layers.  It's a large mechanical
change to change the existing calls to use the wrappers, but it should be
doable, since the buffered I/O API is pretty standard and pretty simple to
implement on top of something else.

> Yet, in order to improve compression efficiency, shouldn't a few
> commands be aware of the compression status anyway?  Ken's draft
> suggests that the compression dictionary be clear when switching from
> article headers to article body text, notably when containing
> attachments in Base64 or UUencode form for instance.

Ah, hm, that's a good point.

> - Should we keep the suggested 291 response code instead of re-using the
> (never standardized) 207 response code implemented in NNTPRelay and
> Diablo?  They implement the MODE COMPRESS command, that answers 207:
>     http://sedore.com/nntprelay/compressed-nntp-not.htm

Is it protocol-compatible with the proposed draft other than with the
reply code?

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Technical Details
Message-ID: <87h9lmva7f.fsf@hope.eyrie.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
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>

Show Full Headers
Complete Article Headers
Message-ID: <87h9lmva7f.fsf@hope.eyrie.org>
Subject: Re: About compression with NNTP
Date: Mon, 19 Oct 2015 14:07:32 -0700
From: Russ Allbery <eagle@eyrie.org>
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>
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: The Eyrie
Lines: 34
NNTP-Posting-Host: 96.90.234.101
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet-its.stanford.edu 1445288853 12646 96.90.234.101 (19 Oct 2015 21:07:33 GMT)
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:Z/+sHG+7mD8G8gkMffkcqEw7HWA=
X-Received-Body-CRC: 2567197695
X-Received-Bytes: 2626