[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
openldap client stuck
- To: openLDAP-software@OpenLDAP.org
- Subject: openldap client stuck
- From: sade <yairinbal@yahoo.com>
- Date: Thu, 26 Jan 2006 10:17:32 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hHWUzrYXwpMOiI5YITWNv3wEKVwQ0zQWqvFEBE+lUDqdW6pGci+IbiOEzgRHRFpf6kDUQe+htIYeim8MXf104FzQVAkZwQUaFKcMZoWvo1wQ1ZgNDjM8oKgjvRQIJBupjtWj7fDGG3T3UIpkl8CoHGjOR2J0/Hmu1aYOJczYioA= ;
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