🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39641

Mixing headerfeed with a normal feed in diablo

#39641
From: Stephen R. van den Berg
Date: Sat, 04 Sep 1999 00:00
93 lines
4786 bytes
I'm currently optimising newsfeeds to allow for a hybrid feed and
remote spool.  As it seems, we're trying some things that haven't been
done before...

Picture this (all Diablo servers):

Server ext-a:	carries full feed
		does not run dreaderd
		offers partial normalfeed to server local-c
		offers partial headerfeed to server local-c

Server ext-b:	carries full feed
		does not run dreaderd
		offers partial normalfeed to server local-c
		offers partial headerfeed to server local-c

Server local-c:	runs diablo and dreaderd
		receives all four feeds from servers ext-a and ext-b on diablo
		diablo offers partial normalfeed to server sat-d
		diablo offers partial headerfeed to server sat-d
		diablo offers full feed back to ext-a and ext-b
		dreaderd posts to diablo on localhost
		fallback posting to diablo on sat-d, ext-b or ext-a
		dreaderd fetches articles from localhost
		fallback fetching from diablo on sat-d, ext-b or ext-a
		dreaderd does *not* cache fetches from localhost
		dreaderd *does* cache fetches from sat-d, ext-b or ext-a
		runs c-nocem on spool to eliminate spam from the overview
		 files and preload the history with yet-to-arrive spam
		 messageids

Server sat-d:	runs diablo and dreaderd
		receives all four feeds from servers ext-a and ext-b on diablo
		diablo offers full feed back to diablo local-c
		dreaderd posts to diablo on localhost
		fallback posting to diablo on local-c, ext-b or ext-a
		dreaderd fetches articles from localhost
		fallback fetching from diablo on local-c, ext-b or ext-a
		dreaderd does *not* cache fetches from localhost
		dreaderd *does* cache fetches from local-c, ext-b or ext-a

Servers ext-a and ext-b are not under my immediate control.  I.e. they're
running stock diablo versions, I can only determine the diablo.hosts,
dnewsfeeds and dnntpspool.ctl files with regard to the entries for
local-c.  Servers local-c and sat-d  are running my own diablo versions
(and can therefore be patched if necessary).

Now, I'm left with some unresolved issues:

- In order to get c-nocem interfaced, I needed an express-cancel interface
  to dreaderd.  I've so far patched dreaderd to accept a new command:

  	CANCEL <msgid> newsgroup [newsgroup ...]

  I haven't tested this yet, still need to patch c-nocem to use it.  If
  anyone has a better idea, I'm all ears.

- dreaderd still needs to be patched to support a new 't' flag in
  dserver.hosts which implies that articles fetches from a server marked
  with 't' are to be passed transparently, without caching.
  I casually inspected the statemachine in spool.c, it's not quite
  readily apparent what the best spot would be to insert this test.
  Hints appreciated (or better ideas, of course).

- Suppose I have a newsgroup head.test which is fed to local-c from
  ext-a in a headerfeed only.  What happens if dreaderd on local-c
  tries to fetch an article from that group?
  It will first contact diablo on local-c, it should then detect
  that this article, even though it's present, is lacking the body.
  Will it notice this, and then fall-back to fetching the article
  from ext-a?

- Suppose I have a newsgroup head.test which is fed to local-c from
  ext-a in a headerfeed, and which is also fed to local-c from ext-b
  in a normal feed (including body).  Suppose further that a certain
  article is fed from ext-a to local-c first, stored as a header-only
  item, then, a few seconds/minutes later, the same article is being
  offered from ext-b.
  Ideally, local-c would detect that the article being offered is
  already present, but in a header-only format, and, since the
  new offering is a full-article, it will accept the article and
  overrides/overwrites the old article content with the new version.
  Does it?
  If not, does it sound practical to build it in?  I'd wager that the
  only efficient solution to this problem would be reserving a bit
  in the history database to indicate header-only or full-article?
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

To boldly program, where *no* man has programmed before!

Technical Details
Message-ID: <7qrmlp$i0u$1@zeus.fw.cuci.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

Show Full Headers
Complete Article Headers
Message-ID: <7qrmlp$i0u$1@zeus.fw.cuci.nl>
Subject: Mixing headerfeed with a normal feed in diablo
Date: Sat, 04 Sep 1999 00:00:00 +0000
From: srb@cuci.nl (Stephen R. van den Berg)
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: 521070353
X-Trace: newspost.cuci.nl 936467964 5975 10.0.0.3
Organization: Cubic Circle
Newsgroups: news.software.nntp