Max outbound connections to different servers limited to 65k
From: ML
Date: Fri Dec 19 2008 - 02:17:19 EST
Hi,
I am trying to make a large number of connections to multiple servers
from a simple tcp client. My ephemeral port range is
net.ipv4.ip_local_port_range = 3000 64000
but it seems like after the number of connections reaches the allowed
port_range, I get:
bind(): Address already in use
I am connecting to 3 different servers.
So does that mean that I can only have a max of 65535-1024
connections, even if I am connecting to different servers.
I was assuming that the kernel will use the entire tuple to store the
information and would allow reusing the ephemeral port if the dst is
different.
Is there any option/patch to enable more that 65k connections.
Thanks for your time.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html