Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 19:02:55 +0000
From:      Tony Finch <dot@dotat.at>
To:        Justin Booth <jbooth@ccbill.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Socket Code problem.
Message-ID:  <20010201190255.S70673@hand.dotat.at>
In-Reply-To: <009901c08c7b$4f5aca30$5200000a@win2000befwze1>
References:  <009901c08c7b$4f5aca30$5200000a@win2000befwze1>

next in thread | previous in thread | raw e-mail | index | archive | help
Justin Booth <jbooth@ccbill.com> wrote:
>
>    The following code has a problem with it. After 16000 or so connections
>the my tcp connections run out of buffer space, which does not allow me to
>make any new TCP connections and the system locks up. an netstat -an
>revieles that there are about 100 sockets in TIME_WAIT and an lsof -n shows
>about 54000 TCP connections in TCP no PCB, CANTSENDMORE, CANTRECVMORE for
>this program.  Can someone point me in the right direction for clearing this
>up.

The child process that you fork needs to do something, and most
particularly it should exit. You should check for errors from fork()
-- they might have clued you into the problem.

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
"Because all you of Earth are idiots!"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010201190255.S70673>