Re: Block in ldap_result call, even after specifying some finite time limit

Anton Bobrov <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization Sun Microsystems, Inc.
Message-ID <[email protected]>
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
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.