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

Mark Smith <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Anton Bobrov wrote:
> 
> 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.

His point is valid.  The reason nearly all I/O in libldap is done in 
blocking mode is mainly for historical reasons (that has always been the 
default, and that mode is therefore most widely used and tested mode). 
Most people do not need full non-blocking I/O; they just need an I/O 
timeout (which, as I said, can be obtained by using libprldap or by 
writing your own I/O functions which is really not difficult).

-Mark
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.