Justin Booth <[EMAIL PROTECTED]> 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    [EMAIL PROTECTED]    [EMAIL PROTECTED]
"Because all you of Earth are idiots!"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to