Re: Facing issues with LDAP_X_OPT_CONNECT_TIMEOUT option.

Mark Smith <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Anton Bobrov wrote:
> LDAP_X_OPT_CONNECT_TIMEOUT is applicable only when a new connection
> being established. in your case that happens when you execute bind
> operation. now i dunno why your LDAP server is changing its IP addr
> dynamically and how it does the cleanup but normally you should get
> LDAP_SERVER_DOWN from ldap_search_s() if that happens clean. there
> were several fixes made to "connection down" handling in libldap
> since 5.08 version so you might wanna upgrade to the latest version
> and see if LDAP_SERVER_DOWN gets returned straight away or not.

Also see this thread:

http://groups.google.com/group/mozilla.dev.tech.ldap/browse_thread/thread/ab7604bb7265d0d0/77bcc1e41d1cde2f?lnk=st&q=PRLDAP_OPT_IO_MAX_TIMEOUT#

Note that PRLDAP_OPT_IO_MAX_TIMEOUT is only useful if you can use 
libprldap (generally used with SSL connections, but may be used always).

-- 
Mark Smith
Pearl Crescent
http://pearlcrescent.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.