Article View: news.software.nntp
Article #23194Re: INN pause does HISclose() and queued checks
From: coneill
Date: Wed, 12 Nov 1997 00:00
Date: Wed, 12 Nov 1997 00:00
35 lines
2134 bytes
2134 bytes
bugs@freebsd.netcom.com (Mark Hittinger) writes: > Just an FYI - I got bit by this during the past week working on some new > history logic. > > If you pause the server CCblock will call HISclose(). You may still have a > series of 'checks <>' coming in from your peers. These checks will go to > HIShavearticle() even though the history file is closed. > > I am hacking 1.4unoff4+ still so I'm not really sure if 1.5/6/7/8 have modified > the handling of this condition. It doesn't look too terrible (we may just > say "we don't have the articles go ahead and send them"). Then after INN > eats them does it loose them? I believe everything up to and including 1.7 has this problem. It's fixed in 1.8-current. > For those who have their hands in under the hood this may give you an ugly > stack-stomping core dump looking at formerly opened mmap'ed mlock'ed data :-) Tell me about it :) > I was playing with it this morning and on our heaviest hit host the number > of checks happening after the pause/HISclose() was averaging 157. > > Should we respond with a defer in this case? I think that would be the ideal scenario, but the history api doesn't really allow for that currently. Until I get the chance to fix everything that uses HIShavehistory, I just make it return with a "does not exist" if the file is closed. I figure the worst case scenario is that we'll reject a few extra articles.
Technical Details
Message-ID:
<86g1p1kc0s.fsf@blah.erols.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:
<64cotg$m8e@dfw-ixnews1.ix.netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <86g1p1kc0s.fsf@blah.erols.com> Subject: Re: INN pause does HISclose() and queued checks Date: Wed, 12 Nov 1997 00:00:00 +0000 From: coneill@blah.erols.com References: <64cotg$m8e@dfw-ixnews1.ix.netcom.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: 289018603 X-Complaints-To: abuse@erols.com X-Trace: winter.news.erols.com 879372083 22494 207.172.25.192 (12 Nov 1997 22:01:23 GMT) Organization: Erol's Internet Services Newsgroups: news.software.nntp