From owner-freebsd-net Thu Feb 1 11: 4: 4 2001 Delivered-To: freebsd-net@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 3C5A837B4EC for ; Thu, 1 Feb 2001 11:03:47 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.20 #3) id 14OP0R-000AmA-00; Thu, 01 Feb 2001 19:02:55 +0000 Date: Thu, 1 Feb 2001 19:02:55 +0000 From: Tony Finch To: Justin Booth Cc: freebsd-net@freebsd.org Subject: Re: Socket Code problem. Message-ID: <20010201190255.S70673@hand.dotat.at> References: <009901c08c7b$4f5aca30$5200000a@win2000befwze1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <009901c08c7b$4f5aca30$5200000a@win2000befwze1> Organization: Covalent Technologies, Inc Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Justin Booth 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