Article View: news.software.nntp
Article #6936Whining about innd and nnrpd's -- CODE! (was: Re: newsfeed wanted.)
From: Joe Greco
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
62 lines
3179 bytes
3179 bytes
In news.software.nntp article <4lo6lr$gre@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> wrote: :>Um, that is already being done (innd does not handle the reader :>connections once it hands them off to the reader process). : :Yes, I knew that. But I thought your point was that innd is sometimes :wedged in the middle of other activity and takes a long time to get :around to servicing new connections. : :>Unfortunately, only one process can sit on port 119, and that has to : :Umm, yes, but that was my point. Move innd to another port entirely :for the purpose of exchanging news and have a *new* dedicated :reader-only server sit on port 119. No need to add yet more complexity :to the original innd as it no longer needs to be especially responsive :for any given piece of traffic. : :In the first instant, your *new* reader-only server could be as :trivial as an accept; fork; exec(nnrp); loop and it would be super :responsive to new connections. CODE! CODE!! ftp.freebsd.sol.net:/incoming/connectd.tar.gz Mildly unportable, it's 4.4BSD (/ FreeBSD) code, you may have to hack around the daemon() call. How to use: 1. Recompile innd to use Some Other Port (I use 1119). That's a matter of changing an include file. 2. Compile connectd, verifying that the paths buried in the code are correct for your system. 3. Restart innd. 4. Run connectd as root. connectd will open a socket and su itself to news. 5. Voila :-) Creeping featurism: the system I wrote this for has some feeds that cannot connect to ports other than 119. There is a "connectd.conf" file that allows you to specify IP socket redirections by source IP address: 134.48.1.31 news.sol.net.1119 would redirect any connection coming from spool.mu.edu to news.sol.net, port 1119. Note the period between news.sol.net and 1119. This means that it can literally be dropped in on top of an INN system with no immediate coordination with the remote sites. It's minimalistic but functional.. The kind of code I like best. I do ask that anyone using it report back any changes to me. If there is enough interest, I will whip it into a real package with real instructions and even a Makefile ;-) ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Technical Details
Message-ID:
<4loppn$386@brasil.moneng.mei.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-mailReferences:
<4l8jg8$pcd@bull.hkstar.net> <4lmibb$ce7@bushwire.mira.net.au> <4lnsds$6cc@panix4.panix.com> <4lo6lr$gre@bushwire.mira.net.au>Show Full Headers
Complete Article Headers
Message-ID: <4loppn$386@brasil.moneng.mei.com> Subject: Whining about innd and nnrpd's -- CODE! (was: Re: newsfeed wanted.) Date: Thu, 25 Apr 1996 00:00:00 +0000 From: jgreco@brasil.moneng.mei.com (Joe Greco) References: <4l8jg8$pcd@bull.hkstar.net> <4lmibb$ce7@bushwire.mira.net.au> <4lnsds$6cc@panix4.panix.com> <4lo6lr$gre@bushwire.mira.net.au> 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: 151421825 Distribution: inet Organization: Marquette Electronics, Inc. - Milwaukee, WI. Newsgroups: news.software.nntp