Article View: news.software.nntp
Article #25318Re: nntpsend/innxmit hanging?
From: Charlie Reboot
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
52 lines
2974 bytes
2974 bytes
On 50 Dec 1997, Paul D. Smith wrote:
> However, one thing seems to be a problem. I'm using nntpsend to forward
> messages, started by cron every 10 mins. Every few days or so I'll
> notice that the out.going batchfile is getting big. I'll go look and
> there's an "in-progress" file xxxx=n sitting there a day or two old, and
> I'll see an innxmit process sitting in my process table, doing nothing.
I see this too, at times when the link to the remote host goes down,
or the remote crashes, and doesn't answer. The innxmit needs to have a
timer to detect when the remote peer has taken to long to answer at this
point and if so, bail out.
> If I "kill <pid>" the innxmit process, it dies without cleaning up the
> =n temp file (I do that by hand).
Far better would be to kill -INT <pid>, which would rewrite the =n
work-in-progress file. And there's no need for you to clean up this file.
The next incantation of nntpsend will merge the new batch file with
whatever didn't get sent, and then offer everything.
> According to the nntpsend man page, it always uses "-a -t180" when
> invoking innxmit, so I don't understand why this happens.
You may also want to put a limit on the time for each batch. This
will not stop all occurrences of this, but it may reduce them. Use the -T
flag with the number of seconds until you terminate the innxmit process.
To a relatively fast peer with an innxmit interval of ten minutes, you
might want to set -T to 540 (9 minutes), or 570, or 1140, or something a
bit less than the multiple of your interval to let the previous innxmit
have a chance to clean up, else you'll miss out on the chance to run it at
the next time interval.
The real solution would be to include a timer at the point where it
gets stuck for me (using the -T flag), but that requires coding. Ick.
Alternatively, once or a few times every day, you can kill -INT any
innxmit processes that are there. It's possible that innxmit will ignore
the -INT if it's sent out an article and is waiting for a reply.
Even better, you could try a real-time feeding method which is immune
to this particular problem which batched innxmit is known to have, say,
innfeed.
Barry Bouwsma, Tele Danmark Internet
Technical Details
Message-ID:
<Pine.BSF.3.96.980119180152.204F-100000@coredump.int.tele.dk>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-mailReferences:
<p54t30zbca.fsf@baynetworks.com>Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.980119180152.204F-100000@coredump.int.tele.dk> Subject: Re: nntpsend/innxmit hanging? Date: Mon, 19 Jan 1998 00:00:00 +0000 From: Charlie Reboot <f00fc7c8@int.tele.dk> References: <p54t30zbca.fsf@baynetworks.com> 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: 317392486 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Thrashing wildly Mime-Version: 1.0 Reply-To: Barry Bouwsma <ag786@yfn.ysu.edu> Newsgroups: news.software.nntp