🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16983

Re: bug in INN1.4unoff4 streaming code

#16983
From: News Admin news.maxwell.syr.edu
Date: Tue, 15 Apr 1997 00:00
89 lines
4896 bytes
On 14 Apr 1997 21:38:49 GMT, jerry@rigel.whowhere.com (Jerry Aguirre)
wrote:

>In article <01bc46e8$91616f10$9401e680@spring>,
>Chris Sedore <cmsedore@maxwell.syr.edu> wrote:
>>
>>Yes, I remember.  What is not specified (and what we apparently disagree
>>on) is whether streaming is a protocol *extension* or a *separate*
>>protocol.  In the extension case (my view) it is perfectly logical and
>>acceptable to "switch" back and forth.  In fact, streaming is not a
>>separate protocol because it requires use of the previous return codes for
>>things like throttling and errors.
>
>Exactly BECAUSE it "is not specified" is why you need to be careful!
>Obviously it can be implemented in several ways.  One implementation
>might just add the streaming commands to the existing ones.  Another
>might actually change modes.
>
>Specifying the protocol more tightly, say by specifying that all
>commands should be supported after mode stream, might make your life
>happier right now but would unnecessarily restrict someone implementing
>the protocol at some future time.  As I said I had strong reasons to
>want to implement streaming under INN as a separate process as was done
>for readers.

I think we just disagree about whether it is an extension, or a
protocol in its own right. 

>>I lock on the check and I refuse the article from other hosts for the lock
>>time.  I plan to modify this to allow the article to be double-accepted and
>>possibly also to use the "try again later" code if desired,  too.
>
>If the other session is doing an IHAVE then your choices are to accept
>the (duplicate) article, refuse it, or to block that connection until
>the article has transferred.  That is about it.
>
>If the other session is a streaming "CHECK" then you have the added
>option to use the "try later" command.  Under INN (innxmit) this causes
>another CHECK command to be sent.  Due to the delays the server
>will see this enough later that the other feed is already likely to
>have finished the article.  In other words use the send it later
>response for CHECK commands.  It works fine.

Yes it works, but it is a nuisance to have to double (or more) offer
each article.  In my case I simply refuse it for the lock time.  For
some hosts it seems that we get about 10-20% "try later" returns,
which is a significant number of re-offers.  

>>> An interesting enhancement to streaming trasmisson would be to use the
>>> number of bytes in the pipe as a limit in addition to the number of
>>> check/takethis commands.  For small articles one requires a large window
>>[...]
>>which pipe are you refering to?
>
>When the sender (innxmit for example) does six CHECK commands the server
>does not immediately receive them.  The OS on the client side buffers
>these up.  Then they get sent out on the network where routers do store
[...]
>
>It is by filling this "pipe" that streaming is able to make better use
>of the connection bandwidth.  Ideally when the server finished
[..]
>
>The INN innxmit streaming code measure's the "fullness of the pipe" by
>the number of CHECK or TAKETHIS commands it has sent but which have not
>been ackowledged.  This issue is that a TAKETHIS comand might have been
>a 300 byte cancel message of a 900,000 byte binary.  The later should
>count for more.

This seems like a good idea.  I'd like to be able to get some of TCP's
calculated parameters (like RTT) to use in this calculation, too.

>>My lock is implemented as a 25 article id circular queue.  Each lock from a
>>check, takethis, or IHAVE is held until it is pushed out.  This is normally
>>1-8 seconds depending on how bursty the traffic is.
>
>This seems inadequate to me.  A single innxmit can offer 16 articles via
>"CHECK" before the first arrives.  Thus even two such feeds would seem
>to saturate your 25 ID lock queue.

Assuming that all 32 are accepted, it would.  I don't often see
incoming rushes of 32 articles in that short a period, except when
clearing a backlog.  My queue length is configurable, though, so if
you were concerned you could lengthen it.

-Chris

Technical Details
Message-ID: <3353bf62.1043411826@liter.maxwell.syr.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.mbox.zip!not-for-mail
References: <01bc4481$01766ea0$1f8fe680@spring> <01bc4549$27b69ea0$1f8fe680@spring> <5imno1$5km$1@fes.whowhere.com> <01bc46e8$91616f10$9401e680@spring> <5iu859$44v$1@fes.whowhere.com>

Show Full Headers
Complete Article Headers
Message-ID: <3353bf62.1043411826@liter.maxwell.syr.edu>
Subject: Re: bug in INN1.4unoff4 streaming code
Date: Tue, 15 Apr 1997 00:00:00 +0000
From: news@maxwell.syr.edu (News Admin @ news.maxwell.syr.edu)
References: <01bc4481$01766ea0$1f8fe680@spring> <01bc4549$27b69ea0$1f8fe680@spring> <5imno1$5km$1@fes.whowhere.com> <01bc46e8$91616f10$9401e680@spring> <5iu859$44v$1@fes.whowhere.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!not-for-mail
X-Deja-AN: 235052793
Organization: The Maxwell School, Syracuse University
Newsgroups: news.software.nntp