Re: Client blocking forever in SSL_connect

2005-12-22 Thread Kurt D. Zeilenga
At 12:57 PM 12/22/2005, Ralf Haferkamp wrote: >When using select() inside ldap_int_tls_connect() we could set the >timeout to e.g. LDAP_OPT_NETWORK_TIMEOUT so it would block only for a >certain time and after that return with an appropriate error code. Okay, I guess. Just be sure to close and fre

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Ralf Haferkamp
Am Do 22.12.2005 22:54 schrieb Kurt D. Zeilenga <[EMAIL PROTECTED]>: > At 12:57 PM 12/22/2005, Ralf Haferkamp wrote: > >When using select() inside ldap_int_tls_connect() we could set the > >timeout to e.g. LDAP_OPT_NETWORK_TIMEOUT so it would block only for a > >certain time and after that return

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Ralf Haferkamp
Am Do 22.12.2005 20:31 schrieb Kurt D. Zeilenga <[EMAIL PROTECTED]>: > At 10:19 AM 12/22/2005, Ralf Haferkamp wrote: > >On Thursday 22 December 2005 18:43, Kurt D. Zeilenga wrote: > >> At 10:43 AM 12/19/2005, Ralf Haferkamp wrote: > >> >Hi, > >> > > >> >I ran into a problem where an LDAP Client, t

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Ralf Haferkamp
Am Do 22.12.2005 20:44 schrieb Kurt D. Zeilenga <[EMAIL PROTECTED]>: > At 10:19 AM 12/22/2005, Ralf Haferkamp wrote: > >I am not sure if I understand your question. My orignal idea was to > >do > >it without any addtional API and hide the non-blocking SSL-handshake > >completely inside the ldap_i

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Kurt D. Zeilenga
At 10:19 AM 12/22/2005, Ralf Haferkamp wrote: >On Thursday 22 December 2005 18:43, Kurt D. Zeilenga wrote: >> At 10:43 AM 12/19/2005, Ralf Haferkamp wrote: >> >Hi, >> > >> >I ran into a problem where an LDAP Client, that uses SSL/TLS (no >> > matter whether via ldaps or START_TLS) was indefinitely

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Kurt D. Zeilenga
At 10:19 AM 12/22/2005, Ralf Haferkamp wrote: >I am not sure if I understand your question. My orignal idea was to do >it without any addtional API and hide the non-blocking SSL-handshake >completely inside the ldap_int_tls_connect() function. Then that the only thing the API could do in face o

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Ralf Haferkamp
On Thursday 22 December 2005 18:43, Kurt D. Zeilenga wrote: > At 10:43 AM 12/19/2005, Ralf Haferkamp wrote: > >Hi, > > > >I ran into a problem where an LDAP Client, that uses SSL/TLS (no > > matter whether via ldaps or START_TLS) was indefinitely blocking in > > the SSL_connect() call in libraries/

Re: Client blocking forever in SSL_connect

2005-12-22 Thread Kurt D. Zeilenga
At 10:43 AM 12/19/2005, Ralf Haferkamp wrote: >Hi, > >I ran into a problem where an LDAP Client, that uses SSL/TLS (no matter >whether via ldaps or START_TLS) was indefinitely blocking in the >SSL_connect() call in libraries/libldap/tls.c. >As libldap mostly uses blocking IO (as far as I understa

Client blocking forever in SSL_connect

2005-12-19 Thread Ralf Haferkamp
Hi, I ran into a problem where an LDAP Client, that uses SSL/TLS (no matter whether via ldaps or START_TLS) was indefinitely blocking in the SSL_connect() call in libraries/libldap/tls.c. As libldap mostly uses blocking IO (as far as I understand), the SSL_connect call also uses blocking IO (ac