πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81817

Re: INN's expire program and memory usage:

#81817
From: Russ Allbery
Date: Mon, 17 Aug 2009 01:26
40 lines
3086 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> My only concern is for articles rejected at arrival time.  We currently
> have in history API:

>    bool HISremember(struct history *history, const char *key, time_t arrived);

> because we write something like:

>    [EDD7A9AFDD5560BD0F1C731C8BEB5F8A]      1250458751~-

> with only an arrival time, in order to remember the rejected article.
> It would be better to have:

>    bool HISremember(struct history *history, const char *key, time_t arrived, time_t posted);

> in order to write something like:

>    [EDD7A9AFDD5560BD0F1C731C8BEB5F8A]      1250458751~-~1250458749

> Is it wise to do that?  (an API change for INN 2.5.1)

I suspect that would be fine.  There's some distant chance that one of the
programs like suck or newsx calls that, but it seems unlikely to me, and
INN isn't otherwise very careful about APIs.

It's certainly fine for the trunk, of course.

> I could also give the posting time to HISremember instead of the arrival
> time, when it is known... but the first field would be diverted from its
> use...

I think it's preferrable to fix the API and write in the real data rather
than changing the meaning of the history field.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ab1z6xjn.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu> <h4lq1g$4kc$1@snarked.org> <h4mt3v$777$1@remote5bge0.ripco.com> <h5tamr$m0u$1@cs6.cmpublishers.com> <h5uoqh$e8a$1@remote5bge0.ripco.com> <h5v7h0$k5h$1@snarked.org> <h5v7uc$13mo$1@bdhi.local> <h60lnv$a34$1@news.trigofacile.com> <87eirf4pdl.fsf@windlord.stanford.edu> <h61ion$5b4$1@news.trigofacile.com> <87k517r4ty.fsf@windlord.stanford.edu> <h6360l$lsg$1@news.trigofacile.com> <87eirevmev.fsf@windlord.stanford.edu> <h63cub$sg8$1@news.trigofacile.com> <87y6pml49x.fsf@windlord.stanford.edu> <h69vj0$qeb$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ab1z6xjn.fsf@windlord.stanford.edu>
Subject: Re: INN's expire program and memory usage:
Date: Sun, 16 Aug 2009 18:26:04 -0700
From: Russ Allbery <rra@stanford.edu>
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu> <h4lq1g$4kc$1@snarked.org> <h4mt3v$777$1@remote5bge0.ripco.com> <h5tamr$m0u$1@cs6.cmpublishers.com> <h5uoqh$e8a$1@remote5bge0.ripco.com> <h5v7h0$k5h$1@snarked.org> <h5v7uc$13mo$1@bdhi.local> <h60lnv$a34$1@news.trigofacile.com> <87eirf4pdl.fsf@windlord.stanford.edu> <h61ion$5b4$1@news.trigofacile.com> <87k517r4ty.fsf@windlord.stanford.edu> <h6360l$lsg$1@news.trigofacile.com> <87eirevmev.fsf@windlord.stanford.edu> <h63cub$sg8$1@news.trigofacile.com> <87y6pml49x.fsf@windlord.stanford.edu> <h69vj0$qeb$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 40
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1250472364 16386 171.67.225.134 (17 Aug 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock: sha1:cvOIV9KD1xKQzzVv/GYqXxbldMA=