Article View: news.software.nntp
Article #79200Re: Does some one with
From: Russ Allbery
Date: Sun, 13 Jul 2008 19:33
Date: Sun, 13 Jul 2008 19:33
47 lines
3541 bytes
3541 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> "Russ Allbery" <rra@stanford.edu> wrote:
>> innfeed currently does not support XBATCH. You have to use innxbatch
>> to send batch files. I'm not sure that batch files make much sense if
>> you're using streaming.
> That will depend on the size of the article and its compressibility
> (text vs. binary).... Even something simpler like LZ77 or LZW78 (over
> bzip2 or gzip) would be an improvement, but it's only cost effective if
> the time of compression plus transmission is less than the uncompressed
> transmission time - and that's hard to judge, but size is a good
> indicator. Obviously, "small" articles would never be compressed, and
> large ones always - when available.
I didn't say that I wasn't sure compression made sense. I said I wasn't
sure batch files made sense. :)
> I don't see why streaming would make a difference.
That's probably because you're not familiar with what a batch file is.
It's a container to send multiple articles at the same time, and the flow
of putting together batch files doesn't really match how streaming works.
It's possible to abuse the idea, but it doesn't really fit.
To support general compression of streaming feeds, you'd need something
other than the current INN XBATCH protocol.
> Each article still gets sent, headers first. With compression, it could
> be something simple as the literal "Compressed\r\n", followed by a
> 32-bit size (in network order for consistency), then the literal next
> "x" bytes as the message (where "x" is the size).
Well, you would send the length as an ASCII number rather than an encoded
binary value and specify the compression method, I would hope, but
otherwise, sure. However, you have to deal with the fact that NNTP
software is often not binary-clean, INN included, before you could do any
of that. The protocol isn't really the hard part. If I were designing
the protocol, I'd probably base it on how HTTP handles compressed data,
but the hard part is fixing the software to deal with nul bytes in all of
its data streams.
--
Russ Allbery (rra@stanford.edu) <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:
<87iqv9a8aj.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<3led74hbgmt03h0amcma48doc6r7kcohb1@4ax.com> <g56se4$j2e$1@news.trigofacile.com> <g58kf0$hkq$1@snarked.org> <874p6wnkdb.fsf@windlord.stanford.edu> <g58mh8$hoj$1@snarked.org> <87hcawm4wb.fsf@windlord.stanford.edu> <g5bqek$qp0$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <87iqv9a8aj.fsf@windlord.stanford.edu> Subject: Re: Does some one with Date: Sun, 13 Jul 2008 12:33:24 -0700 From: Russ Allbery <rra@stanford.edu> References: <3led74hbgmt03h0amcma48doc6r7kcohb1@4ax.com> <g56se4$j2e$1@news.trigofacile.com> <g58kf0$hkq$1@snarked.org> <874p6wnkdb.fsf@windlord.stanford.edu> <g58mh8$hoj$1@snarked.org> <87hcawm4wb.fsf@windlord.stanford.edu> <g5bqek$qp0$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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 47 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1215977604 7272 171.64.19.147 (13 Jul 2008 19:33:24 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:W42Qs1AHKssrolEqoJ8ylz0zSXs=