🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17509

Minor fix to nntpsend

#17509
From: Michael Hucka
Date: Sat, 03 May 1997 00:00
33 lines
1699 bytes
I recently began noticing multiple innxmit's running for identical sites from
our server.  The nntpsend log shows

    Can't send "flush" command (timeout failure) Connection timed out.
    nntpsend: bad flush for news.msha.gov via msha
    nntpsend: trying news.msha.gov via msha anyway

Looking at nntpsend, I found two places where nntpsend tries to do a "ctlinnd
flush" on the sites, but uses only a 30 second timeout.  I believe this is
insufficient; sometimes innd can be busy enough to incur a longer wait.

Here's a simple patch to increase the timeout parameter to 120 seconds, which
I think is more reasonble for today's busy news servers.

RCS file: RCS/nntpsend,v
retrieving revision 1.18
retrieving revision 1.17
361c361
< 	if ctlinnd -s -t120 flush ${SITE} ; then
---
> 	if ctlinnd -s -t30 flush ${SITE} ; then
377c377
< 	ctlinnd -s -t120 flush ${SITE}
---
> 	ctlinnd -s -t30 flush ${SITE}

-- 
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan

Technical Details
Message-ID: <82iv11409e.fsf@manic.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: <82iv11409e.fsf@manic.eecs.umich.edu>
Subject: Minor fix to nntpsend
Date: Sat, 03 May 1997 00:00:00 +0000
From: Michael Hucka <hucka@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
X-Deja-AN: 239025115
Organization: University of Michigan EECS, Ann Arbor, Mich., USA
Newsgroups: news.software.nntp