[Date Prev][Date Next] [Chronological] [Thread] [Top]

openldap client stuck



Hello,

I'm using openldap sdk (libldap, liblbev - 2.1.21) on
Windows environment.

When issuing ldap_simple_bind using ssl, I encounter
the following
problem:

My directory server is problematic and sometimes fails
to response (due to network problems). 
Since the bind operation does not support timeout, I
found myself stuck in recv function.

Here is the call stack - 

recv+0x99
sb_stream_read+0x1e
BIO_read+0x57
ssl3_read_bytes+0xe6f
ssl3_read_bytes+0x25f
ssl3_get_message+0xa3
ssl3_connect+0x36e
SSL_connect+0xa3
ldap_int_tls_connect+0x95
ldap_int_tls_start+0x35
ldap_int_open_connection+0x11d
ldap_new_connection+0x73
ldap_open_defconn+0x15
ldap_send_initial_request+0x3f
ldap_sasl_bind+0x193
ldap_simple_bind+0x6f
....

Is there a way to provide time-out to the bind (as
possible to the ldap_result)?

How can I avoid such stuck? The only way I see, is
manually changing sb_stream_read.

Thanks!
Yair



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com