Alice Joseph <[EMAIL PROTECTED]>:

> I am getting some problems with SSL_Connect.

> v. Initiate an SSLConnection
>     SSL_connect(ssl);
> 
> This call doesn't return at times and 'gdb' shows it's in read() called
> by ssl_read().
> 
> How do I timeout this SSL_connect() call?

Use sockets in non-blocking mode (O_NONBLOCK).  You'll need a
SSL_connect/select loop then (or poll if you prefer it).
select can take a time-out; book-keeping the time used up so far
is left to your application.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to