From owner-freebsd-questions Fri Jun 25 1:58:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id 1232A14BC9 for ; Fri, 25 Jun 1999 01:58:39 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Fri, 25 Jun 1999 11:01:40 +0200 Message-ID: <55586E7391ACD211B9730000C110027617969E@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Purrcat' , freebsd-questions@freebsd.org Subject: RE: netstat, hanging connections and forked daemons.. Date: Fri, 25 Jun 1999 10:55:53 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Purrcat [SMTP:purrcat@edoropolis.org] > Sent: Friday, June 25, 1999 5:44 AM > To: freebsd-questions@freebsd.org > Subject: netstat, hanging connections and forked daemons.. > > Hi, > > I've read several posts on this mailing list about hanging connections > (as > been showed in netstat). I've got the same problem and know what to do > about it (reboot :( ), but I've got a little question about this.. [ML] there is also tcp keepalive sysctl which can be forcibly turned on. On newer releases you can even fiddle with the keepalive timeout. > Does this mean that when, for example, netstat sais 10 http > connections > are CLOSING (in a hanging state), 10 http daemons are wasted as > well??! [ML] It would seem so, if you're using Apache. IIRC, Apache uses a httpd child per socket, but I've RTFS some years ago, so it could have changed in the meantime. Try forcing the keepalives, and the kernel will find out that the win clients are no longer there even though they did not send the FIN_ACK (sonsabitches). It will then close the sockets. /Marino > Thanks for the answer in advance.. > > Kind regards, > > -- Khamba Staring > > "People who generalize things are stupid!" > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message