🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20402

Re: crosspost.c quick performance hack (?)

#20402
From: Forrest J. Cavalier III
Date: Tue, 12 Aug 1997 00:00
59 lines
2606 bytes
In article <5spjtt$ggt$1@samba.rahul.net>, c.c.eiftj@65.usenet.us.com wrote...
>
>An article cross-posted to many newsgroups causes many system calls: one
>link or symlink for each newsgroup.  Below is a quick mod to crosspost.c
>from (inn 1.5.1 + patches) to add a -G flag to cause no more than the
>specified number of links to be created for an article.  Then the
>article will appear to have expired in all other newsgroups.  I don't
>know yet just how much of a performance win this will be.
>
>I guess you could run two instances of crosspost, thus:
>
>   crosspost!:*,!alt.sex*:Tc,Ap,WR:/somewhere/bin/crosspost -s
>   crosspost!:alt.sex*:Tc,Ap,WR:/somewhere/bin/crosspost -s -G 2
>
[snip of diff]

1. Not creating links is asking for trouble.  If you are running
overview, your users will complain a lot because they will see
articles in the list, with recent dates which they can't get.

I think you run a risk of confusing expire.

If you ever have to run makehistory, then you aren't going to
get a valid high article number.  (But if you ever have to run
makehistory, that will be a pretty minor problem....)

2. Running two instances of crosspost this way is not a good idea unless
you want lots of reported errors.  

The problem occurs because there will be articles in BOTH the
cross-post feeds you show.  Consider an article cross-posted
to
alt.binaries.pictures.erotica 
and
alt.sex.

It will be in both feeds.  Both crossposts will try to create the
article, and one of them will get an error.

In general, any '!' newsgroup exclusions on feed do not ensure the
article is not transfered: crossposts will get it through.

'@' newsgroup exclusions are a different story.

See newsfeeds.5.

(Available at:
http://www.mibsoftware.com/userkt/inn/doc/newsfeeds.5.htm
)

But stepping back from the problem, why do you want to prevent
crossposts this way?  If you think the article has too many
crossposts, then drop it.

Forrest Cavalier, Mib Software, INN customization and consulting


Technical Details
Message-ID: <5sq0tn$fgs$1@news1.epix.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: <5spjtt$ggt$1@samba.rahul.net>

Show Full Headers
Complete Article Headers
Message-ID: <5sq0tn$fgs$1@news1.epix.net>
Subject: Re: crosspost.c quick performance hack (?)
Date: Tue, 12 Aug 1997 00:00:00 +0000
From: mibsoft@epix.net (Forrest J. Cavalier III)
References: <5spjtt$ggt$1@samba.rahul.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
X-Deja-AN: 263974939
Organization: Mib Software
Newsgroups: news.software.nntp