🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26120

Re: overview in outgoing directory

#26120
From: Ray Rocker
Date: Wed, 11 Feb 1998 00:00
40 lines
2182 bytes
In article <34E07FDB.57AA@shreve.net>, Brian  <signal@shreve.net> wrote:
>I just confirmed Ray's idea.  Without fail, I can rmgroup, or newgroup,
>and it *will* 100% of the time, cause overview to spill into
>/var/news/spool/out.going/overview!.  But this is good, because now that
>it can be replicated, perhaps it can be tracked, and make an improvment
>for linux.

Ok, after looking through innd source, I think I know what's happening.
To keep a long story short, all file and channel feeds do get closed
and restarted, and WCHANflush gets called to flush each before closing.

Therein lies the rub. WCHANflush calls largewrite to write pending
data to the channel. If overchan's pipe is full, largewrite is
going to fail and cause the data to be spooled. Look in news.notice
for the "overview ... cant flush count ..." messages.

What's interesting is the comment right above WCHANflush:

/*
**  Try to flush out the buffer.  Use this only on file channels!
*/

But it's being used on pipes too, in this case. WCHANflush doesn't
trap the EWOULDBLOCK return from largewrite. Note that the other
function which calls largewrite, CHANreadloop, *does* deal with
EWOULDBLOCK by putting the channel to sleep, whatever that means.
I imagine putting a channel which is being closed to sleep is
not an option though.

Anyway, it all boils down to overchan not draining its input pipe
fast enough. (which wasn't hard to guess even without probing)

--
Ray Rocker
rocker@datasync.com



Technical Details
Message-ID: <6bs2fd$uo1$1@osh1.datasync.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
References: <Pine.BSI.3.95.980208120730.13775A-100000@unit11.support.nl> <4KND.28$B01.105440@ptah.visi.com> <6boc0s$abe$1@osh1.datasync.com> <34E07FDB.57AA@shreve.net>

Show Full Headers
Complete Article Headers
Message-ID: <6bs2fd$uo1$1@osh1.datasync.com>
Subject: Re: overview in outgoing directory
Date: Wed, 11 Feb 1998 00:00:00 +0000
From: rocker@datasync.com (Ray Rocker)
References: <Pine.BSI.3.95.980208120730.13775A-100000@unit11.support.nl> <4KND.28$B01.105440@ptah.visi.com> <6boc0s$abe$1@osh1.datasync.com> <34E07FDB.57AA@shreve.net>
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: 324079790
Organization: Datasync Internet
Newsgroups: news.software.nntp