🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Stephan Forseilles Mon, 19 Jan 1998 00:00
nnrpd/actived problem
#25335
Author: Stephan Forseilles
Date: Mon, 19 Jan 1998 00:00
26 lines
1525 bytes
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).

Thanks.

-- 
--------- This is my own personal opinion ------------
* Stephan Forseilles         - UNIX System Engineer  *
* admin@skynet.be            - Belgacom Skynet SA/NV *
* Digital Unix/Linux/Solaris -        FFESSM Level I *
 Frisbeetarianism, n.: The belief that when you die,
   your soul goes up the on roof and gets stuck.

Re: nnrpd/actived problem - An advice, Joe?
#25344
Author: 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)" --------

Re: nnrpd/actived problem - An advice, Joe?
#25365
Author: 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)" --------

Re: nnrpd/actived problem - An advice, Joe?
#25500
Author: Joe Greco
Date: Fri, 23 Jan 1998 00:00
24 lines
1459 bytes
In news.software.nntp article <34C528A6.916214A5@skynet.be>, Stephan Forseilles <steph@skynet.be> wrote:
: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.
::-)

What OS?

... JG

Re: nnrpd/actived problem - An advice, Joe?
#25554
Author: Stephan Forseilles
Date: Sat, 24 Jan 1998 00:00
34 lines
1975 bytes
Joe Greco wrote:
> 
> In news.software.nntp article <34C528A6.916214A5@skynet.be>, Stephan Forseilles <steph@skynet.be> wrote:


> :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.
> ::-)
> 
> What OS?

Linux 2.0.32. I've tried the 'retry X times solution' under heavy load
and instead of having the 'allready in use message' is just is one or
two second slower (I wait 1 second between retries). I'm pretty sure
it's a limitation of the number of UDP socket the OS can create/sec and
not a problem with actived. But I just made actived walk around the
problem. :)

-- 
-------- 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)" --------

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads