Article View: news.software.nntp
Article #16882Re: bug in INN1.4unoff4 streaming code
From: Chris Sedore
Date: Thu, 10 Apr 1997 00:00
Date: Thu, 10 Apr 1997 00:00
71 lines
3926 bytes
3926 bytes
Jerry Aguirre <jerry@rigel.whowhere.com> wrote in article <5igq95$2mk$1@fes.whowhere.com>... > In article <01bc4481$01766ea0$1f8fe680@spring>, > Chris Sedore <cmsedore@maxwell.syr.edu> wrote: > > > >I noted that with my latest build of NNTPRelay, which dynamically adjusts > >the number of outgoing checks downward in the case of a high percentage of > >late refusals, that upon reaching a check window of 1 and reverting to > >IHAVE, that INN1.4 continues to return 239 instead of 235 for successfully > >transmitted articles. > > I can well believe this. I never considered that anyone whould mix > check and IHAVE in the same connection. In effect you did a "mode stream" > to go into check/takethis mode and then decided later to revert without > telling the server. Did you do a "mode ihave" to revert back? Alright, > there is no "mode ihave" command but if your going to switch back then > you should create one! Well, it depends on your perspective of the mode command. It really (in this case) is a misnomer--it just verifies a capability rather than actually causing a mode switch. Part of the question is whether streaming is a subset of or an add-on to total NNTP command set. My general view is that it is an add on, meaning that I should have all of the commands available to me. I don't mean to sound accusatory here, either. My code did the same thing until a few days ago. > As an implementation detail the server doesn't actually change when > a "mode stream" is done. But when the first "check" or "takethis" is > done the server allocates a structure to keep track of the message-ID. > The presense of that structure is used later to tell if the connection > is streaming. > > Why do you want to revert to IHAVE mode? The check/takethis mode is a > superset of IHAVE. If you run check/takethis waiting after each command > for the response then you have the same functionality that using IHAVE > would achieve. What advantage do you think that IHAVE is giving you? > > How are you telling a "late refusal" from other errors? In debugging the > code a lot of rejected articles were from unwanted newsgroups, too old, > header errors, etc. As I recall the server has two response codes, > accepted, and rejected. Sending one at a time will not help you to > avoid sending articles that are rejected for the above reasons. Most of the articles are rejected because they arrived before my transmission completed. The main disadvantage to takethis is that I cannot determine if an article was really rejected, or if it was just too slow in coming. This is important if I'm trying to determine whether to stay in nocheck mode, or if I am calculating whether or not to close my check window down. IHAVE seems not to suffer from this problem as badly as streaming. I'm suspicious that this is a implementation issue somewhere in INN, though this is little more than a guess since I have not checked the source code. I'm about ready to add a new command to NNTPRelay to enable it to return 438 when an article was received on another connection prior to the termination on the current connection. Maybe "mode advstream", though I think this should be the default behavior. -Chris
Technical Details
Message-ID:
<01bc4549$27b69ea0$1f8fe680@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-mailReferences:
<01bc4481$01766ea0$1f8fe680@spring> <5igq95$2mk$1@fes.whowhere.com>Show Full Headers
Complete Article Headers
Message-ID: <01bc4549$27b69ea0$1f8fe680@spring> Subject: Re: bug in INN1.4unoff4 streaming code Date: Thu, 10 Apr 1997 00:00:00 +0000 From: "Chris Sedore" <cmsedore@maxwell.syr.edu> References: <01bc4481$01766ea0$1f8fe680@spring> <5igq95$2mk$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: 231935189 Distribution: inet Organization: Syracuse University, Syracuse, NY (USA) Newsgroups: news.software.nntp