o.k. SO does that mean that the ports are leaking in the kernel and not my program.Its a redhat 6.2 2.2.12 and 14.
Moreover the port leak is confirmed by the high tcp_bind_bucket value. The question is how can a program(assuming its a bug in the code) possibly occupy more ports than it does connections (including TIME_WAIT ones).
On Fri, Jun 30, 2000 at 09:47:41AM -0700, Aaditya Rai wrote:
> > 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.connect() only returns EAGAIN when it runs out of ports.
sendmsg()et.al. can return EAGAIN when it runs out of memory or you're writing
to a not yet connected non blocking socket.-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.