Article View: news.software.nntp
Article #25986Re: overview in outgoing directory
From: Dale Ghent
Date: Mon, 09 Feb 1998 00:00
Date: Mon, 09 Feb 1998 00:00
59 lines
2407 bytes
2407 bytes
> If this is the fix I think it is (which afflicts all channel feeds, also
> including innfeed if not configured in funnel file mode), then there is a
> fix for this fix without which you have a rather disturbing memory
> leakage. No pointer to this offhand, but it's out there.
And here you go:
*** site.c.orig Tue Dec 17 09:40:40 1996
--- site.c Thu Sep 4 01:34:11 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,287 ----
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) {
! /* reset Used, Left on bp, keep channel buffer size from
! exploding. */
! bp->Used = bp->Left = 0;
! WCHANremove(cp);
! } else
! WCHANadd(cp);
! }
! else
! WCHANadd(cp);
! }
cp->LastActive = Now.time;
--
Dale Ghent daleg @ digex.net
NetworkNews Administrator DIGEX, Inc.
http://www.digex.net Beltsville, MD
I speak for myself
Technical Details
Message-ID:
<6bmcbc$f97$1@news2.digex.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-mailReferences:
<Pine.BSI.3.95.980208120730.13775A-100000@unit11.support.nl> <b4jD.4$yB1.87638@ptah.visi.com> <82u3a9g7i1.fsf@eagle.eecs.umich.edu> <oWtD.113$yB1.407676@ptah.visi.com> <827m75lb5h.fsf@robin.eecs.umich.edu> <Pine.BSF.3.96.980209073155.26007B-100000@marley.vszbr.cz>Show Full Headers
Complete Article Headers
Message-ID: <6bmcbc$f97$1@news2.digex.net> Subject: Re: overview in outgoing directory Date: Mon, 09 Feb 1998 00:00:00 +0000 From: Dale Ghent <daleg@thermite.digex.net> References: <Pine.BSI.3.95.980208120730.13775A-100000@unit11.support.nl> <b4jD.4$yB1.87638@ptah.visi.com> <82u3a9g7i1.fsf@eagle.eecs.umich.edu> <oWtD.113$yB1.407676@ptah.visi.com> <827m75lb5h.fsf@robin.eecs.umich.edu> <Pine.BSF.3.96.980209073155.26007B-100000@marley.vszbr.cz> 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: 323355931 Organization: The Secret Organization User-Agent: tin/pre-1.4-980202 (UNIX) (IRIX/6.3 (IP32)) Newsgroups: news.software.nntp