🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by John Chapman Tue, 27 May 1997 00:00
Crosspost Lag?
#18034
Author: John Chapman
Date: Tue, 27 May 1997 00:00
14 lines
778 bytes

I am finding that the crosspost program is lagging way behind the current 
article being written to history. In fact I canno find a single link yet 
created by it.

Where does crosspost store its parameter queue? I would like to be able to see 
what it is doing.


Thanks!


Re: Crosspost Lag?
#18056
Author: Jeff Garzik
Date: Wed, 28 May 1997 00:00
20 lines
1279 bytes
John Chapman wrote:
> I am finding that the crosspost program is lagging way behind the current
> article being written to history. In fact I canno find a single link yet
> created by it.


I scanned the source a week ago or so, and it seemed like crosspost
would benefit from putting an additional stat call (to check and see if
a file exists and is a directory) before before the call to [I think]
MakeSpoolDir().  It blindly calls mkdir() for each article's home dir,
whether the directory exists or not, and exits with success if the
mkdir() fails...  Why not just stat the darn thing?  Trusting mkdir()
error reporting seems flaky as well.
-- 
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/

Re: Crosspost Lag?
#18060
Author: Jerry Aguirre
Date: Wed, 28 May 1997 00:00
29 lines
2038 bytes
In article <338BF73D.1D72668F@spinne.com>,
Jeff Garzik  <jeff.garzik@spinne.com> wrote:
>John Chapman wrote:
>I scanned the source a week ago or so, and it seemed like crosspost
>would benefit from putting an additional stat call (to check and see if
>a file exists and is a directory) before before the call to [I think]
>MakeSpoolDir().  It blindly calls mkdir() for each article's home dir,
>whether the directory exists or not, and exits with success if the
>mkdir() fails...  Why not just stat the darn thing?  Trusting mkdir()
>error reporting seems flaky as well.

I think you will find that crosspost first attempts to just create
the hard link on the assumption that the directory already exists.
This is based on the idea that the directory only needs to be created
once and thus most of the time worrying about the directory would be a
waste of time.  Thus the most common case is optimized.

You can argue about what should happen when the directory does NOT exist
but consider that should only happen once.  Your trying to optimize something
that happens very infrequently.

BTW, the code in crosspost is an attempt to copy the exact logic used
by innd in creating links for cross posted articles.  I think that a good
case was made that innd and crosspost could be a little smarter about checking
error codes.  In some cases the next action is dictated by what the error code
is such as when the directory doesn't exist.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads