Article View: news.software.nntp
Article #20789Bug in INN overchan backlog patches....
From: Forrest J. Cavalier III
Date: Thu, 21 Aug 1997 00:00
Date: Thu, 21 Aug 1997 00:00
83 lines
2990 bytes
2990 bytes
The patch which goes by various "overchan-backlogs"
names originially by Jerry A., has a defect discussed in
an inn-workers message by Richard Michael Todd of Jul 19
with subject: Various fixes for INN 1.6b1.
Only 1.6b2 and later has the necessary buffer reset.
If the reset is necessary (and I think it is as discussed),
then perhaps the overchan backlog patches should be fixed?
Dave? Jerry?
I suppose James lost track of which patches went in to 1.6,
and didn't notify the keepers of the patches when the bug
fix went by for 1.6b1. And Richard Michael Todd didn't
realize he was fixing a patch....
INN installations affected...
1.5.1 with "overchan backlog" patch installed
1.6b1
INN installations which are not affected....
1.6b2
1.6b3
The gory details follow my sig. This should be adequate
for you to make the correction to whichever version you
are running....
Forrest Cavalier, Mib Software, INN customization and consulting
Commercial support for INN: http://www.mibsoftware.com/innsup.htm
Here is the code as it appears in three versions in my
unified export format. Clauses are tagged as follows...
XINN151 for 1.5.1
XINN151PATCHED for patch with Jerry's patch.
XINN160B3 for 1.6b3
Somewhere near 263 in 1.5.1/innd/site.c
if (i < sp->StopWriting)
WCHANremove(cp);
#mibexp#ifexp XINN160B3 XINN151PATCHED
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) {
#mibexp#elseexp
if ((sp->StartWriting == 0 || i > sp->StartWriting)
&& !CHANsleeping(cp))
WCHANadd(cp);
#mibexp#endexp 265
#mibexp#ifexp XINN160B3
/* reset Used, Left on bp, keep channel buffer size from
exploding. */
bp->Used = bp->Left = 0;
#mibexp#elseexp
#mibexp#endexp
#mibexp#ifexp XINN160B3 XINN151PATCHED
WCHANremove(cp);
} else
WCHANadd(cp);
}
else
WCHANadd(cp);
}
#mibexp#elseexp
#mibexp#endexp
Technical Details
Message-ID:
<5ti3om$1lp$1@news1.epix.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-mailShow Full Headers
Complete Article Headers
Message-ID: <5ti3om$1lp$1@news1.epix.net> Subject: Bug in INN overchan backlog patches.... Date: Thu, 21 Aug 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) 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: 265758659 Organization: Mib Software Newsgroups: news.software.nntp