🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Michael Hucka Tue, 27 Feb 1996 00:00
[INN 1.4unoff3] Small bug in nntpsend + patch
#5298
Author: Michael Hucka
Date: Tue, 27 Feb 1996 00:00
42 lines
2201 bytes
The default nntpsend script supplied with INN 1.4unoff3 has a small bug: it
doesn't handle entries in nntpsend.ctl for identical hostnames but different
site names.  This arises when you split a feed to a site, as we do locally to
insure that our local groups get propagated as rapidly as possible between
the different university news servers.  For example, we have in our
nntpsend.ctl the following:

  newsxfer.itd.umich.edu:newsxfer.itd.umich.edu:10m:-T3600 -t180
  newsxfer-umich:newsxfer.itd.umich.edu:10m:-T3600 -t180

The fix is trivial; below is a diff against the stock 1.4unoff3 nntpsend.

RCS file: RCS/nntpsend,v
retrieving revision 1.8
diff -r1.8 nntpsend
2c2
< ##  $Revision: 1.8 $
---
> ##  $Revision: 1.8.1.1 $
275,276c275,276
<       BATCHFILE=${HOST}.nntp
<       LOCK=${LOCKS}/LOCK.${HOST}
---
>       BATCHFILE=${SITE}.nntp
>       LOCK=${LOCKS}/LOCK.${SITE}
280c280
<           echo "${PROGNAME}: [${PARENTPID}:$$] ${HOST} locked ${WHY} `date`"
---
>           echo "${PROGNAME}: [${PARENTPID}:$$] ${SITE} locked ${WHY} `date`"
293c293
<               echo "${PROGNAME}: [${PARENTPID}:$$] begin ${HOST} `date`"
---
>               echo "${PROGNAME}: [${PARENTPID}:$$] begin ${SITE} `date`"
296c296
<               echo "${PROGNAME}: [${PARENTPID}:$$] end ${HOST} `date`"
---
>               echo "${PROGNAME}: [${PARENTPID}:$$] end ${SITE} `date`"
-- 
Mike Hucka     hucka@umich.edu     http://ai.eecs.umich.edu/people/hucka
University of Michigan AI Lab & EECS Departmental Computing Organization

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5325
Author: Dave Barr
Date: Tue, 27 Feb 1996 00:00
15 lines
1083 bytes
In article <82spfwa96l.fsf@robin.eecs.umich.edu>,
Michael Hucka <hucka@eecs.umich.edu> wrote:
>The default nntpsend script supplied with INN 1.4unoff3 has a small bug: it
>doesn't handle entries in nntpsend.ctl for identical hostnames but different
>site names.

This code is unchanged from 1.4, so this behavior is there too.
I don't agree that this is a bug.

I probably won't integrate this change, as it appears to alter the
behavior of nntpsend in an incompatible way.

--Dave

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5337
Author: Tom Samplonius
Date: Wed, 28 Feb 1996 00:00
33 lines
2312 bytes
On Wed, 28 Feb 1996, Michael Hucka wrote:

> >>>>> On 27 Feb 1996, tom@uniserve.com (Tom Samplonius) wrote:
> 
>   tom> Isn't this totally irrelevant?  innxmit now does NNTP streaming, so
>   tom> running parallel innxmit processes is just a waste of system
>   tom> resources.
> 
> No, it's not irrelevant.  Yes, innxmit does streaming, but there are
> situations in which being able to set up parallel feeds is still useful.  The
> particular one I'm concerned with is the following.  We peer with other
> servers on campus.  Those servers often back up; our server is currently
> backlogged for 2 out of 3 other campus-only servers we feed, and those two
> backlogged servers currently have over 100,000 unsent articles.  (Yes, we set
> a truncation threshold in nntpsend.ctl.)  The problem is that those
> backlogged servers may not get news posted on our server for 2-3 days, and we
> often have users post time-critical messages on local groups.  To help insure
> that the local groups get propagated as fast as possible even despite these
> backlogs, we set up separate entries in our newsfeeds file for sending just
> the local groups along a separate feed.  Those separate feeds see very little
> activity (~50 articles a day), so they don't tax the other servers, but they
> are very useful.
> 
> Don't you think that this makes sense?  If you know of a more effective way
> of propagating local groups without setting up separate entries like this,

  I just use a stdin nntplink for that kind of thing.  A stdin nntplink 
works well for a low volume feed, and there is nothing faster.

Tom

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5346
Author: Chris Lewis
Date: Wed, 28 Feb 1996 00:00
24 lines
1720 bytes
In article <4gvre4$702@augusta.math.psu.edu>,
Dave Barr <barr@math.psu.edu> wrote:
>In article <82spfwa96l.fsf@robin.eecs.umich.edu>,
>Michael Hucka <hucka@eecs.umich.edu> wrote:
>>The default nntpsend script supplied with INN 1.4unoff3 has a small bug: it
>>doesn't handle entries in nntpsend.ctl for identical hostnames but different
>>site names.
>
>This code is unchanged from 1.4, so this behavior is there too.
>I don't agree that this is a bug.
>
>I probably won't integrate this change, as it appears to alter the
>behavior of nntpsend in an incompatible way.

You may want to think some more on this...  We have a situation
where we run 10 different feeds through the same firewall (same
hostname/IP), and differentiate them by a -P<portnum> in the nntpsend.ctl
flags field.  The existing version requires us to insert 10 different
aliases for the same machine into our database.  The suggested fix
uses the site names instead, and we don't need to screw around
with adding gazillions of pseudo names into our already overburdened
names databases.

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5349
Author: Tom Samplonius
Date: Wed, 28 Feb 1996 00:00
25 lines
1644 bytes
In article <82lolo2eoq.fsf@hawk.eecs.umich.edu>, hucka@eecs.umich.edu says...
>
>>>>>> On 27 Feb 1996, barr@math.psu.edu (Dave Barr) wrote:
>
>  >> The default nntpsend script supplied with INN 1.4unoff3 has a small bug:
>  >> it doesn't handle entries in nntpsend.ctl for identical hostnames but
>  >> different site names.
>
>  barr> This code is unchanged from 1.4, so this behavior is there too.  I
>  barr> don't agree that this is a bug.
>
>  barr> I probably won't integrate this change, as it appears to alter the
>  barr> behavior of nntpsend in an incompatible way.
>
>?!? Please elaborate.  I don't understand how this changes the behavior
>of nntpsend in an incompatible way -- it changes nothing except the ability
>to disambiguate sites that receive multiple innxmit connections.

  Isn't this totally irrelevant?  innxmit now does NNTP streaming, so
running parallel innxmit processes is just a waste of system resources.

Tom


Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5362
Author: Michael Hucka
Date: Wed, 28 Feb 1996 00:00
61 lines
3540 bytes
>>>>> On 27 Feb 1996, barr@math.psu.edu (Dave Barr) wrote:

  >> The default nntpsend script supplied with INN 1.4unoff3 has a small bug:
  >> it doesn't handle entries in nntpsend.ctl for identical hostnames but
  >> different site names.

  barr> This code is unchanged from 1.4, so this behavior is there too.  I
  barr> don't agree that this is a bug.

  barr> I probably won't integrate this change, as it appears to alter the
  barr> behavior of nntpsend in an incompatible way.

?!? Please elaborate.  I don't understand how this changes the behavior
of nntpsend in an incompatible way -- it changes nothing except the ability
to disambiguate sites that receive multiple innxmit connections.

I also don't understand how you can *not* consider the current behavior a
bug, unless I'm missing something really obvious.  (If I am, I'm sorry.)
Here is my reasoning.  In the stock nntpsend, if a newsfeeds file contains
(e.g.) the following,

  newsxfer.itd.umich.edu/caen\
	:clari.*,!umich.*\
        :Tf,Wnm:

  newsxfer-umich/caen,newsxfer.itd.umich.edu\
	:!*,umich.*\
        :Tf,Wnm:

then the entries for nntpsend.ctl should, logically, be the following, 

  newsxfer.itd.umich.edu:newsxfer.itd.umich.edu::
  newsxfer-umich:newsxfer.itd.umich.edu::

But nntpsend will not do the right thing here.  Why?  Because the lock file
it uses is based on the *hostname* (the second field), not the *site* name.
When nntpsend goes to check if an innxmit process is already running for an
entry in nntpsend.ctl, it checks the file ${LOCKS}/LOCK.${HOST}.  If there
are two entries in nntpsend.ctl to the same hostname, then nntpsend will
always find a lock file for the first entry, and erroneously conclude that
there is already an innxmit process running for the second entry.  Thus, no
innxmit will ever get started for the second entry.

All I'm proposing is that nntpsend be made to use ${LOCKS}/LOCK.${SITE}
instead of ${LOCKS}/LOCK.${HOST}.  That will avoid the problem.  The other
mods that I posted in the patch are simply a logical consequence of this
small change.  

I've been informed via private email by Joe St Sauver (joe@decoy.uoregon.edu)
of one technique (which he attributes to John Milburn) for avoiding the
problem in the current version of nntpsend.  To wit, one can change the case
of the site name in one of the entries.  However, that's a hack.  Doesn't it
make more sense to modify nntpsend to handle this situation cleanly?

I assure you these modifications work fine.  We implemented them over a week
ago, without any ill effects, and without having to change *anything* else.
-- 
Mike Hucka     hucka@umich.edu     http://ai.eecs.umich.edu/people/hucka
University of Michigan AI Lab & EECS Departmental Computing Organization

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5363
Author: Michael Hucka
Date: Wed, 28 Feb 1996 00:00
25 lines
2100 bytes
>>>>> On 28 Feb 1996, tom@uniserve.com (Tom Samplonius) wrote:

  tom> Isn't this totally irrelevant?  innxmit now does NNTP streaming, so
  tom> running parallel innxmit processes is just a waste of system
  tom> resources.

I don't believe it's irrelevant.  Yes, innxmit does streaming, but there are
situations in which being able to set up parallel feeds is still useful.  The
particular one I'm concerned with is the following.  We peer with other
servers on campus.  Those servers often back up; our server is currently
backlogged for 2 out of 3 other campus-only servers we feed, and those two
backlogged servers currently have over 100,000 unsent articles.  (Yes, we set
a truncation threshold in nntpsend.ctl.)  The problem is that those
backlogged servers may not get news posted on our server for 2-3 days, and we
often have users post time-critical messages on local groups.  To help insure
that the local groups get propagated as fast as possible even despite these
backlogs, we set up separate entries in our newsfeeds file for sending just
the local groups along a separate feed.  Those separate feeds see very little
activity (~50 articles a day), so they don't tax the other servers, but they
are very useful.
-- 
Mike Hucka     hucka@umich.edu     http://ai.eecs.umich.edu/people/hucka
University of Michigan AI Lab & EECS Departmental Computing Organization

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5364
Author: Joe Ramey
Date: Wed, 28 Feb 1996 00:00
20 lines
1441 bytes
In article <4h0u7e$clo@atlas.uniserve.com> tom@uniserve.com (Tom
Samplonius) writes:

   In article <82lolo2eoq.fsf@hawk.eecs.umich.edu>,
   hucka@eecs.umich.edu says...

   Isn't this totally irrelevant?  innxmit now does NNTP streaming, so
   running parallel innxmit processes is just a waste of system
   resources.

Although innxmit now does streaming, the innd from older releases does
not accept streaming, so it doesn't do you any good unless you can get
all your major downstream feeds to upgrade to a more recent unoff
version of INN (or to at least add the streaming mods to their
server).  Until all the sites I feed install newer versions of INN,
I'll keep using a split feed and a patched nntpsend like Michael Hucka
described (we'd independently made the same patch to our version of
nntpsend several months ago).

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5387
Author: Chris Lewis
Date: Thu, 29 Feb 1996 00:00
34 lines
2114 bytes
In article <4h0u7e$clo@atlas.uniserve.com>,
Tom Samplonius <tom@uniserve.com> wrote:
>In article <82lolo2eoq.fsf@hawk.eecs.umich.edu>, hucka@eecs.umich.edu says...
>>
>>>>>>> On 27 Feb 1996, barr@math.psu.edu (Dave Barr) wrote:
>>
>>  >> The default nntpsend script supplied with INN 1.4unoff3 has a small bug:
>>  >> it doesn't handle entries in nntpsend.ctl for identical hostnames but
>>  >> different site names.
>>
>>  barr> This code is unchanged from 1.4, so this behavior is there too.  I
>>  barr> don't agree that this is a bug.
>>
>>  barr> I probably won't integrate this change, as it appears to alter the
>>  barr> behavior of nntpsend in an incompatible way.
>>
>>?!? Please elaborate.  I don't understand how this changes the behavior
>>of nntpsend in an incompatible way -- it changes nothing except the ability
>>to disambiguate sites that receive multiple innxmit connections.

>  Isn't this totally irrelevant?  innxmit now does NNTP streaming, so
>running parallel innxmit processes is just a waste of system resources.

When you're trying to run multiple newsfeeds to multiple destinations
via a raptor firewall, it looks as if you're trying to run parallel
innxmits to the same IP address, but what you're actually doing is
connecting to _different_ systems by specifying a different port number
in the nntpsend.ctl flag field.

This change would be very much appreciated in our environment.
-- 
Chris Lewis: _Una confibula non sat est_

Re: [INN 1.4unoff3] Small bug in nntpsend + patch
#5414
Author: Jerry Aguirre
Date: Thu, 29 Feb 1996 00:00
16 lines
1334 bytes
In article <82spfwa96l.fsf@robin.eecs.umich.edu> hucka@eecs.umich.edu writes:
>
>The default nntpsend script supplied with INN 1.4unoff3 has a small bug: it
>doesn't handle entries in nntpsend.ctl for identical hostnames but different
>site names.  This arises when you split a feed to a site, as we do locally to

I also find it annoying that nntpsend uses the hostname rather than the
site name for its files.  The default work around is to use different
case (host.com, host.Com, host.cOm, etc.) for the different entries.  The
DNS system ignores case but nntpsend and the unix file system consider them
to be different.

But using different cases is not as clear as being able to name an entry
as "site-big" or "site-posts".

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