🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25365

Re: nnrpd/actived problem - An advice, Joe?

#25365
From: Stephan Forseilles
Date: Tue, 20 Jan 1998 00:00
40 lines
2207 bytes
Stephan Forseilles wrote:

> > Escape character is '^]'.
> > create_udp_socket: bind: Address already in use
> > 200 news1.skynet.be InterNetNews NNRP server INN 1.6b3 31-Jul-1997 

> I tested this: in udp.c, I included the bind in a loop so that if the
> bind fails it retries (up to three times). Result: I didn't see anymore
> messages 'Address allready in use' on this machine though I still had
> alot of them on the second one ('unpatched', load balanced with the
> first one). A possible patch to the patch? :-) Any advice or comment
> would be appreciated on the wiseness of this.

Looks like I'm doing this thread on my own. :)

I made a test programs wich connect to port 119 and analyzes the banner.
In the following results, news0 is an original actived/nnrpd, news1 uses
my workaround:

bash> ./test news0 30
.!.......!!.!!!!!!!....!......
Ok: 19 (63%) - Refused:  (0%) - Already in use: 11 (36%)
bash> ./test news1 30
..............................
Ok: 30 (100%) - Refused:  (0%) - Already in use: 
(0%)                      

Maybe it's not the more elegant solution but at least it seems to work.
:-)


-- 
-------- This is my own personal opinion -----------
* Stephan Forseilles       - UNIX System Engineer  *
* steph@nospam.skynet.be   - Belgacom Skynet SA/NV *
* Remove 'nospam' to reply -        FFESSM Level I *
------ "Resistance is futile!  (if < 1ohm)" --------

Technical Details
Message-ID: <34C528A6.916214A5@skynet.be>
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
References: <34C3A307.78A95831@skynet.be> <34C51E53.8BE5AFB7@skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <34C528A6.916214A5@skynet.be>
Subject: Re: nnrpd/actived problem - An advice, Joe?
Date: Tue, 20 Jan 1998 00:00:00 +0000
From: Stephan Forseilles <steph@skynet.be>
References: <34C3A307.78A95831@skynet.be> <34C51E53.8BE5AFB7@skynet.be>
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: 317813196
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@news1.skynet.be
X-Trace: news1.skynet.be 885336178 15379 (None) 195.238.1.80
Organization: SKYNET Technical Team
Newsgroups: news.software.nntp