Re: File Descriptor Leak in Freebsd 4.9 - any known issue?

2008-09-12 Thread Kris Kennaway

punit gupta wrote:

Hi,

Has there been any known issue regarding socket-descriptor leak in Freebsd4.9? 


I doubt anyone will remember since 4.9 was so long ago.

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: File Descriptor Leak in Freebsd 4.9 - any known issue?

2008-09-12 Thread Jerry
On Fri, 12 Sep 2008 13:22:15 +0530 (IST)
punit gupta <[EMAIL PROTECTED]> wrote:

> Has there been any known issue regarding socket-descriptor leak in
> Freebsd4.9?

Since FreeBSD-4.9 is depreciated, is there any possibility that you
could do an upgrade to version 7.0 ( or 7.1 that will be released
shortly)?

-- 
Jerry
[EMAIL PROTECTED]

Fortune favors the lucky.


signature.asc
Description: PGP signature


File Descriptor Leak in Freebsd 4.9 - any known issue?

2008-09-12 Thread punit gupta
Hi,

Has there been any known issue regarding socket-descriptor leak in Freebsd4.9? 

In my application I am using openldap client library to authenticate users with 
ldap-server. Whenever an authentication request comes, the application opens a 
socket to backend ldap server and then hands over the socket-descriptor to 
ldap-client-library. ldap-client-library takes care of communicating with 
ldap-server and later calls 'unbind' that also closes the connection. 

Now, the problem I am facing is this - I observed that the number of sockets 
opened by the application to backend ldap-server keeps growing constantly. 
These open sockets keep lingering even when there is no activity happening for 
a long time (e.g. no authentication request coming for hours). This is many 
times leading to the error "kern.maxfiles limit reached by uid ..." and then 
system stops functioning. 

I was wondering if there can be a problem with open-ldap-library and it is not 
calling 'unbind' in some cases; but then I observed that the issue does not 
occur 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?

Kindly let me know if you have an idea on what might be happening or what could 
be the fix. Any help is much appreciated.

Thanks,
Punit




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"