🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5298

[INN 1.4unoff3] Small bug in nntpsend + patch

#5298
From: 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

Technical Details
Message-ID: <82spfwa96l.fsf@robin.eecs.umich.edu>
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: <82spfwa96l.fsf@robin.eecs.umich.edu>
Subject: [INN 1.4unoff3] Small bug in nntpsend + patch
Date: Tue, 27 Feb 1996 00:00:00 +0000
From: hucka@eecs.umich.edu (Michael Hucka)
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: 141384649
Sender: hucka@robin.eecs.umich.edu
Organization: University of Michigan EECS, Ann Arbor, Mich., USA
X-attribution: Mike Hucka
Reply-to: hucka@eecs.umich.edu
Newsgroups: news.software.nntp