🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25344

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

#25344
From: Stephan Forseilles
Date: Tue, 20 Jan 1998 00:00
37 lines
2248 bytes
Stephan Forseilles wrote:
> 
> I spawn nnrpd from inetd but sometimes (under havey load) I got:
> 
> belcast2:~# telnet news1 119
> Trying 195.238.2.13...
> Connected to news1.skynet.be.
> Escape character is '^]'.
> create_udp_socket: bind: Address already in use
> 200 news1.skynet.be InterNetNews NNRP server INN 1.6b3 31-Jul-1997 ready
> (posting ok) (noaudit).
> 
> This obviously comes from actived (udp.c). Any1 has an idea how to avoid
> it? The machine is a PPro200, 128MB, about 100 readers (no inn running,
> spool comes from NFS).

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.

I know the method 'retry if fails' is not necesseraly a good idea, but
the "Address allready in use" comes only under heavy loads so it must be
some race condition or random conditions whose probability increases
with the number of requests to actived.

-- 
-------- 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: <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
References: <34C3A307.78A95831@skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <34C51E53.8BE5AFB7@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>
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: 317802328
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@news0.skynet.be
X-Trace: news0.skynet.be 885333514 8993 (None) 195.238.1.80
Organization: SKYNET Technical Team
Mime-Version: 1.0
Newsgroups: news.software.nntp