Re: Max outbound connections to different servers limited to 65k

From: ML
Date: Tue Dec 30 2008 - 01:09:53 EST


On Fri, Dec 26, 2008 at 10:48 AM, Florian Weimer <fw@xxxxxxxxxxxxx> wrote:
> * ML:
>
>> 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.
>
> Does this also happen if you don't include the call to bind?
>

Yes. I even tried to bind it to different IP addresses on the local
machine (using alias), but still he max connections with ephemeral
ports wont go over the port_range value.

But, if I specify a port while binding with different IP address, then
I am able to reuse the port.
So it seems like the ephemeral port selection part in the kernel only
provides a max of

net.ipv4.ip_local_port_range = 3000 64000

values.

Thanks
--
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