Did you do a select() after the BIO_do_connect()?
Steven
--
Steven Reddie <[EMAIL PROTECTED]>
Senior Software Engineer
Computer Associates Pty Ltd (Australia)
> -----Original Message-----
> From: Wirta, Ville [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 11:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: non-blocking BIO
>
> Hi!
>
> I was wondering how to set non-blocking mode on in my helper application
> (using OpenSSL). I found a BIO example at:
> http://www.openssl.org/docs/crypto/BIO_f_ssl.html# which worked fine
> until
> I tried to make it nonblocking by adding:
>
> BIO_set_nbio (sbio, 1);
>
> in the code, right before:
>
> BIO_do_connect(...);
>
> I get "Error connecting to server" even though my server says it got a new
> connection.
>
> ERR_print_errors_fp(stderr);
>
> doesn't say any error message.
>
> Now if anyone is familiar with non-blocking BIO I'd be pleased to hear I
> did
> something wrong and some advices on how to continue :-)
>
> Thanks VW
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]