On Thu, Apr 26, 2007, Amit Hakoo wrote:

>  
> 
> Whats the right way to abort the call to BIO_do_connect? Is there a
> timeout value that I can set. I am using Blocking IO. I am trying to
> connect to a server but for some reason the BIO_do_connect does not
> return. I wanted to abort this operation after a particular timeout
> value. How should I do this?
> 

There is no mechanism in OpenSSL. The best solution is to use non-blocking I/O
and then use poll(), select() or whatever the platform equivalent is.

If you must use blocking I/O you should see if the platform socket
implementation provides any appropriate setting: you will need to retrieve the
underlying socket from the BIO in that case.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to