🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30442

Re: GROUP command speedup for INN 2.1

#30442
From: fluffy Fluffy
Date: Wed, 12 Aug 1998 00:00
28 lines
1616 bytes
In the patch, I had :

+         GROUPENTRY *gp = GRPfind(group);
+         long gphigh = GPHIGH(gp);
+         long gplow = GPLOW(gp);
+         ARTsize = gphigh - gplow + 1;

This is wrong.  A bug will appear if you read a group, get out, then do
GROUP on the _same_ newsgroup again within a short time. XOVER, for
example, won't return anything.

After you apply the patch, cut out the four lines shown above from
group.c, and replace them with the following 8:

        GROUPENTRY *gp = GRPfind(group);
        static long gphigh;
        static long gplow;
        if (GRPdirty) {
            gphigh = GPHIGH(gp);
            gplow = GPLOW(gp);
            ARTsize = gphigh - gplow + 1;
        }

Sorry, it hadn't occurred to me until I just went and caught up a group
I wasn't done reading.


Technical Details
Message-ID: <Mw.ExKMsr_Cq4@fluffy.meow.org>
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: <6qrl31$f95$1@fluffy.meow.org>

Show Full Headers
Complete Article Headers
Message-ID: <Mw.ExKMsr_Cq4@fluffy.meow.org>
Subject: Re: GROUP command speedup for INN 2.1
Date: Wed, 12 Aug 1998 00:00:00 +0000
From: fluffy@meow.org, _@fluffy.meow.org (Fluffy)
References: <6qrl31$f95$1@fluffy.meow.org>
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: 380355494
Sender: fluffy@localhost.meow.org
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!fluffy.meow.org
X-Trace: mail2news.demon.co.uk 902916904 mail2news:7659 mail2news mail2news.demon.co.uk
Organization: MEOW
NNTP-Posting-Date: 12 Aug 1998 10:16:09 GMT
Newsgroups: news.software.nntp