From owner-freebsd-questions@FreeBSD.ORG Fri Sep 12 08:18:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B579106564A for ; Fri, 12 Sep 2008 08:18:58 +0000 (UTC) (envelope-from punit_iiit@yahoo.co.in) Received: from web8408.mail.in.yahoo.com (web8408.mail.in.yahoo.com [202.43.219.156]) by mx1.freebsd.org (Postfix) with SMTP id 39C588FC22 for ; Fri, 12 Sep 2008 08:18:56 +0000 (UTC) (envelope-from punit_iiit@yahoo.co.in) Received: (qmail 92629 invoked by uid 60001); 12 Sep 2008 07:52:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=fgG0AtTMmh4TGz900q987Z6ojJmoKn+pDBM2gHG8gOB8Qo8z7dFyGbia63XJ5frBmS3i785uqLMXHebX8UGTy1tvgxfFsrmNBVwQsRKsbypZqMbs5so+VRw7UNGvRXlrs3NPr1YJtRKZ8UNr4ZydY0tncaNyT4KiYW3sAhnzbmg=; X-YMail-OSG: FrBWmL8VM1n2l82k1ixAPAehB6tj6oWO2cACTFljpVtZDqbhiX_Cow3lvgrvvuUi19PMlU9qChDXdA0xot6fHcsQ8EyghSuKzk7o642Z7v3JiCgq5uNS18Nf_erw3MzgX2o- Received: from [202.75.201.5] by web8408.mail.in.yahoo.com via HTTP; Fri, 12 Sep 2008 13:22:15 IST X-Mailer: YahooMailRC/1096.28 YahooMailWebService/0.7.218.2 Date: Fri, 12 Sep 2008 13:22:15 +0530 (IST) From: punit gupta To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <269473.92612.qm@web8408.mail.in.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: File Descriptor Leak in Freebsd 4.9 - any known issue? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 08:18:58 -0000 Hi,=0A=0AHas there been any known issue regarding socket-descriptor leak in= Freebsd4.9? =0A=0AIn my application I am using openldap client library to = authenticate users with ldap-server. Whenever an authentication request com= es, the application opens a socket to backend ldap server and then hands ov= er the socket-descriptor to ldap-client-library. ldap-client-library takes = care of communicating with ldap-server and later calls 'unbind' that also c= loses the connection. =0A=0ANow, the problem I am facing is this - I observ= ed that the number of sockets opened by the application to backend ldap-ser= ver keeps growing constantly. These open sockets keep lingering even when t= here is no activity happening for a long time (e.g. no authentication reque= st coming for hours). This is many times leading to the error "kern.maxfile= s limit reached by uid ..." and then system stops functioning. =0A=0AI was = wondering if there can be a problem with open-ldap-library and it is not ca= lling 'unbind' in some cases; but then I observed that the issue does not o= ccur when I run same application on Freebsd6.3. Even if there was a problem= with ldap-library then also how can a socket remain open for hours without= any activity happening on it - shouldn't it be timing out at some time?=0A= =0AKindly let me know if you have an idea on what might be happening or wha= t could be the fix. Any help is much appreciated.=0A=0AThanks,=0APunit=0A= =0A=0A=0A