Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 13:22:15 +0530 (IST)
From:      punit gupta <punit_iiit@yahoo.co.in>
To:        freebsd-questions@freebsd.org
Subject:   File Descriptor Leak in Freebsd 4.9 - any known issue?
Message-ID:  <269473.92612.qm@web8408.mail.in.yahoo.com>

next in thread | raw e-mail | index | archive | help
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      



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