[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [warn] Error binding network socket: Address already in use

Quoth Olaf Selke <olaf.selke@xxxxxxxxxxxx>, on 2009-11-10 07:54:57 +0100:
> > It sounds like you're running
> > out of outgoing ports to use for connections.
> yes, but only about 27000 tcp connections have been open

That's getting close to the limit.  Usually only high-numbered ports
are used for outgoing connections.  Since you mention you are running
Linux, you may wish to check /proc/sys/net/ipv4/ip_local_port_range
and possibly widen the range to see whether that helps.  E.g., the
default range on my system appears to be 32768--61000, which allows
at most 28232 outgoing TCP connections that are not bound to specific
ports, and fewer if some of the ports are stuck in wait states.

/proc settings (as you are probably aware) are usually changed using
echo and shell redirection, so you would use

  # echo 24576 65000 > /proc/sys/net/ipv4/ip_local_port_range

or a similar command.

> Olaf

   ---> Drake Wilson
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxxx with
unsubscribe or-talk    in the body. http://archives.seul.org/or/talk/