🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26543

Re: Diablo progress report

#26543
From: Matt Dillon
Date: Thu, 26 Feb 1998 00:00
74 lines
4428 bytes
:In article <6d3q6c$6dm$1@xs1.xs4all.nl>,
:Jan-Pieter Cornet  <johnpc@xs4all.nl> wrote:
:..
:>
:>>    expiration of data files will be simple:  stale data files representing 
:>>    old articles are simply deleted.  The problem is in determining *when*
:>>    the overview information is stale.
:>
:>Like I said before: you need some sort of "expire" feed from the spool
:>machine. The spooler should be able to say "I've just expired article
:>ranges 1-5486,5488-5612 from group X (article 5487 had an explicit
:>Expires header, which as of diablo version 1.42 is recognised... blabla etc).
:>This does make it hard to use anything but diablo for the spool software.

    ... which is why I'm not going to do things that way.

:>I'm sure it could be hacked around on other platforms, eg. innd usually
:>uses an expire.rm file to remove articles, which could be exported...
:>(Hm, but a header-only feed is not something to be found either in other
:>software, afaik. Can be done with an external program, of course...)

    The header-only feed is optional, though, you can push a normal feed
    at the diablo reader and it will work fine, though not be optimal.
    The reader will simply discard the article bodies and keep the headers.

:>Or... whenever the reader asks an article from the spool, and the spooler
:>says it doesn't have it, issue a GROUP command to the spooler to get
:>the low water mark for that group, and then instantly do expiry. And
:>whenever the reader feels it needs something to do, go issue GROUP

    This is a better idea.  In fact, the current reader code can already
    do it if you run 'dsyncgroups' from a cron job with the -NR option.
    The article begin/end does not even have to be synchronized with the
    spool, it will take a delta and then subtract that delta from the 
    end article number of the reader and use that to start the new begin
    article number.

:>commands for groups that you haven't visited for some time. That's
:>NNTP-compatible. It does mean "disappointing" users now and then where
:>XOVER said the article would be there, but in reality it isn't (which
:>could happen anyway, when the article is cancelled or expired between
:>the XOVER and ARTICLE commands, but probably won't happen too often).
:>This will not be ideal for groups with lots of gaps in them, though...

    This can actually be a serious problem, but I think it will mostly
    go away once I figure out how to implement cancel controls in the
    reader.  At the moment, the diablo reader will happily return the
    headers to the user with a body of '(article not available)' if it
    finds the article in the overview but cannot retrieve it from a
    server.

:>Then erase the appropriate entries from the index file, keep a
:>reference count on the number of articles that are still in the index,
:>per datafile, and unlink datafiles when the reference count goes to 0.
:>
:>I'm just thinking out loud here... after a crash and periodically, you
:>might want to check the reference counts, which should be easy since
:>you can keep the reference counts in the index file as well.

    The reference counts aren't that important.  You just have to be close.
    In fact, the diablo reader generates a reference count simply by
    subtracting the end article number from the beginning article number
    in the group.

					-Matt

-- 
    Matthew Dillon   Engineering, BEST Internet Communications, Inc.
    <dillon@best.net>, include original article w/ any response.
    do not under any circumstances send email to joeblow@bigspender.idiom.com
    and, for gods sake, don't email bucktram@popserver.idiom.com

Technical Details
Message-ID: <6d4d9r$57j$1@flea.best.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-mail
References: <6clc7s$b96$1@apollo.backplane.com> <6d2ij4$rh2$1@xs1.xs4all.nl> <6d2n9d$pqh$1@flea.best.net> <6d3q6c$6dm$1@xs1.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <6d4d9r$57j$1@flea.best.net>
Subject: Re: Diablo progress report
Date: Thu, 26 Feb 1998 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <6clc7s$b96$1@apollo.backplane.com> <6d2ij4$rh2$1@xs1.xs4all.nl> <6d2n9d$pqh$1@flea.best.net> <6d3q6c$6dm$1@xs1.xs4all.nl>
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: 328912303
X-Trace: 888518782 7210 dillon 206.184.139.132
Organization: Best Internet Communications, Inc. - 650 964 BEST
Newsgroups: news.software.nntp