🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #45262

Re: News routing software

#45262
From: Curt Welch
Date: Sun, 26 Mar 2000 00:00
83 lines
4639 bytes
mouse@NOSPAM.nibble.net (Steve Walker) wrote:
> On 26 Mar 2000 00:40:31 +0100, Sven Paulus <sven@karlsruhe.org> wrote:

> >  - is there a way to reread configuration without having to
> >    shut down the server? HUP kills the process
>
> I thought about it and I've decided against it for now.  The problem
> is that to really reload you have to break all connections and stop
> the external spamfilter.    If you do all that why not just kill the
> process and restart it?

For a feed box, doing a shutdown and restart is seldom a real problem.
But on a reader box, you don't want to have to kick off users if you
don't have to.  So there lots of reasons for having "smart" configuration
reloads which just check to see what's changed and only adjust things
as required without having to stop anything that's in progress.

And even on a feed box, it's nice if you can set up new peers or change
access control stuff without having to restart the server every time you do
that.  Diablo is very good about that.

> >  - IHAVE isn't supported on incoming feeds
>
> Does anyone still use IHAVE to send a feed?

Yes.  The ISP-SAT feed software for example uses IHAVE.  Some people still
prefer to use IHAVE in some cases.  You need to support it.

Can you correctly deal with a TAKETHIS <bogus id@host>?  i.e. a Message-ID
with a space in it on a TAKETHIS?  If you reject it with an 500 syntax
error then the article following the TAKETHIS will be parsed as NNTP
commands. Not a good thing.

Diablo used to do this.  Don't know if it still allows Message-IDs with
spaces.

> >  - if you give Message-IDs longer than 128 (or so) characters
> >    after CHECK or TAKETHIS you're back on command state without
> >    a reply (CHECK) or state change (TAKETHIS)
>
> I've changed the max length of a message id to 512 characters.  Any
> message id longer than this and earthquake gets confused.  Does this
> sound like a reasonable limit.

Yes 512 is fine. I've now gone to the son-of-1036 standard of 250 bytes.
Anything long gets rejected.

> >  - earthquake accepts posts with duplicate headers
>
> Do duplicate headers violate the RFC's?

Dups of the standard News headers violate the RFCs but not dups of
"any" header.  Most transist servers don't seem to check things like
this (but a dup of the Message-ID would be something that's wise
to check in the Tranist server).  You must check for these problems
on POST commands though.

Speeking of which, you also need to check that the Real Message-ID in the
article and not just trust the ID that was sent in the TAKETHIS or the
IHAVE.  Lots of feeding software gets this wrong from time to time and you
don't want to pass along those types of errors to your other peers.

> >  - in earthquake.conf it says that all patterns are regex, but
> >    there are examples like "alt.binaries.pictures.erotica.*"
> >    (instead of "^alt\.binaries\.pictures\.erotica\.") and
> >    "news.nntpserver.com" (instead if "news\.nntpserver\.com")
> >    (btw. are these patterns treated
>
> These strings are passed right into regcomp.  I've corrected some of
> the examples.  While they are not technically correct they should work
> even without escaping the . character all over the place.  Would
> people rather see glob style pattern matching?

For newsgroup names it's what everyone else uses.  You would confuse
people if you used regular expressions.  And having to escape the dots
would be a real pain.  And the wildmat stuff in NNTP is all glob style
and not regular expresions (like LIST ACTIVE alt.*).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000325223602.874$5Y@newsreader.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.mbox.zip!not-for-mail
References: <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de> <38de5f6d.1023032569@news.nntpserver.com>

Show Full Headers
Complete Article Headers
Message-ID: <20000325223602.874$5Y@newsreader.com>
Subject: Re: News routing software
Date: Sun, 26 Mar 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <38dc7c3a$1_1@news.nntpserver.com> <Carla.Brescher@bypass.pool-88.oops.inka.de> <38de5f6d.1023032569@news.nntpserver.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.mbox.zip!not-for-mail
X-Deja-AN: 602444397
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: news.software.nntp