Article View: news.software.nntp
Article #16804INN: patch for overchan backlogs
From: Jerry Aguirre
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
58 lines
2258 bytes
2258 bytes
A common problem with INN on many systems is that the channel
feed to overchan gets farther and farther behind until innd
burps the excess to a file in the out.going spool. This file
is useless as there is no existing mechanism to process it.
The problem turns out to not be with overchan but with innd not
being able to write the data fast enough to keep up with overchan.
The size of the OS buffer used for pipes limits the amount that can be
written on each loop of innd's channel scheduler.
The following patch has been running here for a little over a month.
Manual runs of "expireover -a" show only the "-" entries for cancelled
articles. Never a "+" for dropped or not up to date overchan entries.
Jerry Aguirre
*** innd/site.c.orig Tue Dec 17 06:40:40 1996
--- innd/site.c Thu Feb 20 10:35:49 1997
***************
*** 260,267 ****
if (i < sp->StopWriting)
WCHANremove(cp);
if ((sp->StartWriting == 0 || i > sp->StartWriting)
! && !CHANsleeping(cp))
! WCHANadd(cp);
cp->LastActive = Now.time;
--- 260,284 ----
if (i < sp->StopWriting)
WCHANremove(cp);
if ((sp->StartWriting == 0 || i > sp->StartWriting)
! && !CHANsleeping(cp)) {
! if (sp->Type == FTchannel) { /* channel feed, try the write */
! int j;
! if (bp->Left == 0)
! return;
! j = write(cp->fd, (POINTER)&bp->Data[bp->Used], (SIZE_T)bp->Left);
! if (j > 0) {
! bp->Left -= j;
! bp->Used += j;
! i = cp->Out.Left;
! }
! if (bp->Left <= 0)
! WCHANremove(cp);
! else
! WCHANadd(cp);
! }
! else
! WCHANadd(cp);
! }
cp->LastActive = Now.time;
Technical Details
Message-ID:
<5icb87$jlr$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-mailShow Full Headers
Complete Article Headers
Message-ID: <5icb87$jlr$1@fes.whowhere.com> Subject: INN: patch for overchan backlogs Date: Tue, 08 Apr 1997 00:00:00 +0000 From: jerry@rigel.whowhere.com (Jerry Aguirre) 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: 231515303 Organization: WhoWhere?; Mt. View, CA USA Newsgroups: news.software.nntp Summary: Keeps overchan up with incomming articles