Re: Facing issues with LDAP_X_OPT_CONNECT_TIMEOUT option.
Mark Smith <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
Please read the posting I pointed to about PRLDAP_OPT_IO_MAX_TIMEOUT. That option allows you to limit how long the LDAP C SDK will block when doing I/O. To use it you will need to use the prldap layer. Another choice is to create your own I/O functions to handle these kinds of situations. -- Mark Smith Pearl Crescent http://pearlcrescent.com/ Binod Kumar wrote: > Hello Anton/Mark, > > Thanks for quick reply.I need your help to resolve TCP/IP timeout issue for > following scenario. > We have valid LDAP connection and this connection is reused for ldap > operation like search ,modify etc. Suppose LDAP server machine goes down but > we have valid LDAP connection handle , we make some ldap operation using > this LDAP connection handle but LDAP server is down now and the ldap > operation API waits for TCP/IP timeout period(almost 15 minutes on Linux), > which is not desirable. Is there some way we can make LDAP API to return > after user defined timeout period, if LDAP server is down? We are using > synchronous LDAP API and application used for it, is single threaded. > Please let me know if there is any way, we can handle this scenario.