Mark, is there any real reason why we switch back to blocking i/o
[ restore flags ] at the very end of nsldapi_os_connect_with_to()?
i gotta say RamaKrishna's test is a wee bit strange but it makes a
valid point me thinks.

Mark Smith wrote:
RamaKrishna Narla wrote:
When we debugged the LDAP C SDK code, we felt that, the time limit
specified in ldap_result call is getting applied only for poll
operation. And, recv call is getting blocked for the data from Primary
Directory Server on machine 1.

This is correct. You either need to use libprldap (which is what I would recommend) or install your own I/O callback functions that use non-blocking sockets. For libprldap, you can set the PRLDAP_OPT_IO_MAX_TIMEOUT option to limit the time the library will wait for I/O operations to finish.

-Mark Smith
 Pearl Crescent, LLC
 http://pearlcrescent.com/services/
_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap
_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to