🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16927

Re: bug in INN1.4unoff4 streaming code

#16927
From: Barry Boursyma
Date: Sat, 12 Apr 1997 00:00
84 lines
4767 bytes
On 12 Apr 1997, Chris Sedore wrote:

> > Under streaming mode there is a fully implemented "send it later"
> > response code.
> 
> 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.

    You'd definitely do much better to return the 431 code (try later)
rather than refusing the article, and I imagine this would be a trivial
change to your code.  I've watched innxmit running verbosely in streaming
mode and see that it does the right thing when faced with this response --
trying the article a second time around.

    Chances are you aren't actually losing many articles with your present
strategy, since there are a number of distant feeds to you which would get
the article to you after some time, in the event that the intended
transfer fails.  However, by using the 431/436 code, you'll assure that
your closer peers will retry the article rather quickly and you'll pretty
much eliminate the possibility that the article will be lost in the
confusion.


> ihave_refuse 523483
> ihave_reject 38111
> check 2141954
> check_refuse 2086293
> takethis 87185
> takethis_refuse 49674
> precommit_saves 101900
> 
> precommit_saves is the number of times that my locking code prevented an
> article from being sent more than once.  This is currently 128% of the
> number of articles I have actually accepted (insert).  takethis_refuse is
> the number of times that an article was rejected--I called it this because
> most of the time it is due to a refuse not a reject.

    A trivial difference in terminology, but a reject implies that the
article was transferred in its entirety before being tossed, whilst a
refuse implies (to INN-heads) that the only wasted bandwidth was the
transfer of the Message-ID.  That is, rejects are undesirable, just as are
your takethis_refuse, for sites which are concerned with bandwidth spent
with no gain.  Of course, a duplicate article is rather different from an
article with an invalid Message-ID or which is three weeks old or which
otherwise can't be accepted.


    For what it's worth, now that I'm peering with a number of very fast
sites, my configuration to these sites consists of sending at most 3 to 5
CHECKs in the category of articles smaller than 4k size, but over a number
of connections ranging from 5 to 10 simultaneously.  This has resulted in
a significant decrease of tossed articles (sent but rejected after
transmission) from the time I was giving 10 CHECKs.  However, this
requires that the peer have the resources (file descriptors) to handle
enough incoming connections, as well as not to be slowed down during the
INN select loop.  Most peers running conventional INN will not be happy
about this, yet my primary incoming server has been handling some 120
incoming connections with no noticeable delay in response lately -- but
I'm sure I'd see that it's not quite up to snuff if I bothered to perform
actual measurements.  I'm lazy though, and if cruel twists of fate cause
me to accept over 360 000 articles daily, I'll rack my brains on other
things like sleep.

    At the same time, proving that the connection into this country is the
kink in the hose (and traceroutes as seen from other sites have confirmed
my suspicions), the change in strategy for outgoing peers at Maxwell has
resulted in a keep-up rate at my end now on the order of >90%, much
improved from the time when it would fluctuate wildly from around 10%
during weekdays to 80% or more overnight.

    Just some more figures for those who like to turn numbers into useful
code...


Barry Bouwsma, Radio Praha newsbully


P.S.:  I'm not bragging.  In fact, given the disasters which have befallen
me lately, I'd be doing better to hide my head.  Target practice, anyone?


Technical Details
Message-ID: <Pine.BSF.3.95q.970412114343.516i-100000@flaming-bully.bofh.radio.cz>
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> <5igq95$2mk$1@fes.whowhere.com> <01bc4549$27b69ea0$1f8fe680@spring> <5imno1$5km$1@fes.whowhere.com> <01bc46e8$91616f10$9401e680@spring>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.95q.970412114343.516i-100000@flaming-bully.bofh.radio.cz>
Subject: Re: bug in INN1.4unoff4 streaming code
Date: Sat, 12 Apr 1997 00:00:00 +0000
From: Barry Boursyma <boursy@Radio.CZ>
References: <01bc4481$01766ea0$1f8fe680@spring> <5igq95$2mk$1@fes.whowhere.com> <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: 234293524
X-Sender: boursy@flaming-bully.bofh.radio.cz
Organization: Radio Praha -- Cesky Rozhlas 7
Reply-To: ag786@yfn.ysu.edu
Newsgroups: news.software.nntp