Tanks for the reply.Can I really be running out of ports when there are not more than 20 connections at any given time. (The structure of my program and netstat, both verify this.)
Netstat doesn;t show more than 5 connections in TIME_WAIT during the operation.
Thanks,
Aaditya.
On Thu, Jun 29, 2000 at 07:44:08PM -0700, Aaditya Rai wrote:
> Hello all,
> I open about 5-10 connections simultaneously to a server and after a
> while the client starts
> reporting
>
> "Can't connect:Resource temporarily unavailable".You ran out of ports because of TIME-WAIT. Linux has a bug that it does
not reuse local ports even if it could when at least one reference exists
to the port. One workaround is to increase the local port range
in /proc/sys/net/ipv4/ip_local_port_range-Andi
-- Aaditya Rai Speedera Networks. "If you and I agree on everything then one of us is unneccessary."
-------------------------------------------------------------------- This message is for the named person(s) use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. SPEEDERA NETWORKS, INC. reserves the right to monitor all e-mail communications through its network.
