🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23187

INN pause does HISclose() and queued checks

#23187
From: Mark Hittinger
Date: Wed, 12 Nov 1997 00:00
29 lines
1553 bytes

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?

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 :-)

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?

Regards,

Mark Hittinger
Netcom/Dallas
bugs@freebsd.netcom.com

Technical Details
Message-ID: <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

Show Full Headers
Complete Article Headers
Message-ID: <64cotg$m8e@dfw-ixnews1.ix.netcom.com>
Subject: INN pause does HISclose() and queued checks
Date: Wed, 12 Nov 1997 00:00:00 +0000
From: bugs@freebsd.netcom.com (Mark Hittinger)
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: 288976701
Organization: Netcom
X-NETCOM-Date: Wed Nov 12 11:27:14 AM CST 1997
Newsgroups: news.software.nntp