Article View: news.software.nntp
Article #16953Re: bug in INN1.4unoff4 streaming code
From: Jerry Aguirre
Date: Mon, 14 Apr 1997 00:00
Date: Mon, 14 Apr 1997 00:00
75 lines
4372 bytes
4372 bytes
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 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. >> 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 and forward processing. Then the server's OS buffers the received packets and presents the data to the server as requested. All this buffering is quite substantial and was what I was reffering to as the "pipe". It is by filling this "pipe" that streaming is able to make better use of the connection bandwidth. Ideally when the server finished processing a request it will find that there is already some data in its input buffer waiting to be processed. Thus it doesn't have to sit idle waiting for the client to send it more data. 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. >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. Jerry Aguirre
Technical Details
Message-ID:
<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-mailReferences:
<01bc4481$01766ea0$1f8fe680@spring> <01bc4549$27b69ea0$1f8fe680@spring> <5imno1$5km$1@fes.whowhere.com> <01bc46e8$91616f10$9401e680@spring>Show Full Headers
Complete Article Headers
Message-ID: <5iu859$44v$1@fes.whowhere.com> Subject: Re: bug in INN1.4unoff4 streaming code Date: Mon, 14 Apr 1997 00:00:00 +0000 From: jerry@rigel.whowhere.com (Jerry Aguirre) References: <01bc4481$01766ea0$1f8fe680@spring> <01bc4549$27b69ea0$1f8fe680@spring> <5imno1$5km$1@fes.whowhere.com> <01bc46e8$91616f10$9401e680@spring> 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: 234783464 Distribution: inet Organization: WhoWhere?; Mt. View, CA USA Newsgroups: news.software.nntp