Article View: news.software.nntp
Article #32715Re: any newsreaders that allow cancelling transfers midway?
From: Matt Dillon
Date: Thu, 05 Nov 1998 00:00
Date: Thu, 05 Nov 1998 00:00
59 lines
3330 bytes
3330 bytes
:In article <1rg1bycihr.fsf@haey.ifi.uio.no>,
:Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
:>[Greg Berigan]
:>
:>> That'll piss of your news admin and may get you banned from the
:>> server. See the reaction when Netscape released software that did
:>> this. Some servers began blocking IPs when clients dropped
:>> connections in the middle of transfers.
:>
:>But you can blame modem users for wanting the functionality. It just
:>should be implemented more intelligently.
:>
:>For some servers, the cost of starting a new connection is pretty
:>high. This is compounded by the cost of the GROUP command on the
:>server side. (It is now usual to hack INN so that it gives the wrong
:>answer to avoid taking the speed hit of doing it properly.)
:>
:>To alleviate this, I would suggest always using two connections to the
:>server. One for stateful information, and one for stateless. I.e.,
:>connection 1 does GROUP and XOVER, while connection 2 does LIST ACTIVE
:>and ARTICLE msgid. To make XOVER interruptible, the client should
:>chunk it up into several transactions, the size of which can be based
:>on on-the-fly timing.
:>
:>One unfortunate side effect is that it's harder to get readership data
:>for the news admin, since the article reads will not be linked to the
:>group.
:>
:>
:>Kjetil T.
Blech. This approach was used with FTP and has caused nothing but
trouble ever since.
A better idea would be to support an 'interrupt' NNTP command. You
retrieve an article by sending an appropriate 'article' NNTP command,
and if you want to abort it you send an 'interrupt' command while
still receiving the article dump.
If the server sees (is checking for) the command, and if it determines
that it is indeed the 'interrupt' command, it cuts the article dump
short. The article is still terminated with \r\n.\r\n, of course.
The server would also have to respond to the 'interrupt' command itself
in order to handle the interrupt-after-end-of-article race condition.
No big deal.
This approach would be backwards compatible.
Using multiple tcp connections to manage something as simple as
interrupting/aborting a download is a huge waste of resources.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<71sng6$pae$1@flea.best.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<71l332$gnr$1@nnrp1.dejanews.com> <71okin$vhm$1@jik.shore.net> <gberigan-0411981011000001@lin-pm4-010.inetnebr.com> <1rg1bycihr.fsf@haey.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <71sng6$pae$1@flea.best.net> Subject: Re: any newsreaders that allow cancelling transfers midway? Date: Thu, 05 Nov 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <71l332$gnr$1@nnrp1.dejanews.com> <71okin$vhm$1@jik.shore.net> <gberigan-0411981011000001@lin-pm4-010.inetnebr.com> <1rg1bycihr.fsf@haey.ifi.uio.no> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 408730487 X-Trace: nntp1.ba.best.com 910287177 29747 dillon@206.184.139.131 Organization: BEST Internet Communications, Inc. www.best.com Newsgroups: news.software.readers,news.software.nntp