Article View: news.software.nntp
Article #61133Re: [FNTP] 'in-completeness'
From: Kjetil Torgrim Homme
Date: Mon, 07 Oct 2002 08:07
Date: Mon, 07 Oct 2002 08:07
59 lines
3858 bytes
3858 bytes
[Curt Welch]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> > while we're at it, an ABORT command would be nice, mostly for readers,
> > but also for transit. consider:
> >
> > S: TAKETHIS <zot@gazonk>
> > S: Newsgroups: alt.binaries.some.uncarried.group
> > S: Subject: Angel E02S03
> > S: ...
> > R: ABORT TAKETHIS <zot@gazonk>
> > S: ...
> > S: .439
> >
> > the ABORT would be handled best effort by the server, as a guideline,
> > it should check for new input once a second. (remember the context
> > here is huge articles.)
>
> Streaming feeds tend to use large output queues to make it easier
> to keep the pipe filled (i.e. even if the application doesn't get
> around to putting more data into the pipe for a second, there's
> enough there for low levels of the application and/or OS to keep
> the data flowing). Trying to add a real-time abort command to a
> streaming feed would make it much harder for the sending side to
> both keep the data flowing and still be responsive enough to ABORT
> commands to make them useful.
the flow of data in an NNTP connection is very lopsided, generally
there will be little traffic in the opposite direction. this makes it
easier to keep the input drained while the output pipe is full. yes,
the code needs to move data from the implicit queue which is the
kernels TCP buffers into an explicit queue in order to see and process
the ABORT. when an ABORT comes in, the server should see if it is the
currently processed request, or look through the queue for pending
commands (a simple text comparison).
the code should be simple enough, but one must take care to keep the
number of extra syscalls (select/poll/gettimeofday) down.
> It's just a mess tring to do that stuff in a protocol that's much
> harder than it looks already. Have you every tried to write
> something that sends a streaming feed? It's a lot harder than it
> looks to make it work well.
I have some experience with Diablo, never did write anything from
scratch.
> Being able to have more control from the receiving side of a feed
> would be nice, but I think there are better ways to to that than
> trying to make an abort command work.
sure. I think ABORT is more useful for NNRP, simply due to slower
downloads. its possible usefulness for NNTP is a bonus.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Technical Details
Message-ID:
<1rvg4e8yeq.fsf@vingodur.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mailReferences:
<58068.n92202@archiver.winews.net> <yl7kgyrpwd.fsf@windlord.stanford.edu> <Xns929DD03393AD4nothing@209.98.50.131> <yl4rc1ixdo.fsf@windlord.stanford.edu> <upsas7o7bbvf8e@corp.supernews.com> <1r8z1dadsi.fsf@atta.ifi.uio.no> <20021005024551.258$wO@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <1rvg4e8yeq.fsf@vingodur.ifi.uio.no> Subject: Re: [FNTP] 'in-completeness' Date: Mon, 07 Oct 2002 08:07:41 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <58068.n92202@archiver.winews.net> <yl7kgyrpwd.fsf@windlord.stanford.edu> <Xns929DD03393AD4nothing@209.98.50.131> <yl4rc1ixdo.fsf@windlord.stanford.edu> <upsas7o7bbvf8e@corp.supernews.com> <1r8z1dadsi.fsf@atta.ifi.uio.no> <20021005024551.258$wO@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 58 NNTP-Posting-Host: vingodur.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1033978062 26820 129.240.68.200 (7 Oct 2002 08:07:42 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 7 Oct 2002 08:07:42 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7