Kamal, I am experiencing a problem with ldap_simple_bind_s hanging on Solaris 2.7 using the Netscape LDAP SDK 4.0 and have been told out-of-band that there is a known problem with connect hanging (see http://bugzilla.mozilla.org/show_bug.cgi?id=79509). I found the following technique to be helpful:
1. log a message before each ldap_ call (e.g., "Calling ldap_search_ext...\n") 2. run the program "on top of" truss 3. look at the source code to correlate the information you gather from 1. and 2. Also, I remember seeing an option named LDAP_OPT_ASYNC_CONNECT in later versions of the SDK, which may not be available in 3.0. I can't remember exactly what this does, but it might be worth investigating. Frank > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 11:40 AM > To: [EMAIL PROTECTED] > Subject: Application hangs while trying to publish ldap entry > > > Hi, > My application sometime hangs when it tries to search and modify the > directory entry. The application will modify the directory entry every > 45 minute. I could not figure out exact function where the program > hangs. > > Directory server detail: > Netscape Directory Server 4.1.2 > > The application is using Netscape LDAP SDK 3.0 to access the directory > server. It is single threaded application. > > It is using ldap_search_ext , ldap_modify_ext Asnyc for seach and > modify the entry. > > I have given the Netscape directory access log entry at the time of > hanging. > (Note: it has failed only in this point. It was successful in the > operation previous time) > > [10/Nov/2001:11:29:30 +1100] conn=327 op=132 SRCH > base="cn=test,ou=testou,o=testo,c=AU" scope=0 filter="(objectclass=*)" > [10/Nov/2001:11:29:30 +1100] conn=327 op=132 RESULT err=0 tag=101 > nentries=1 etime=0 > [10/Nov/2001:11:30:25 +1100] conn=327 op=-1 fd=1608 closed - A1 > > > From access log it seem the connection is closed. I want to know who > initiated the closing operation(directory server OR Application) & why > the application hangs. > > If someone gives any hint on this it will be helpful to me. > > Thanks & Regards, > Kamal. >
