I have to admit to not using the BIO functions but I have mixed select()
and SSL_read/SSL_write with success. Using BIO functions BIO_get_fd may
get you the handle you need to be able to use the select function??

Robert Sandilands 

Alwyn Schoeman wrote:
> 
> Hi,
> 
> After some testing I seem to come to the conclusion that if you just use
> SSL_read
> with select blocking on the network socket, you will never get a condition
> where there's no data being received due to SSL communication?
> 
> How would one go about using select() with an SSL BIO?
> 
> The example sconnect.c just doesn't do it for me for the following reasons:
> 1) I can't have sleep(1) all over the place.
> 2) If you take out the sleep(1) you effectively poll the BIO which won't do if
> you are writing programs that will have a lot of processes running at the same
> time.
> 
> Any ideas or am I misguided and the BIO uses select() or something else
> already?
> 
> Thank you
> Alwyn Schoeman
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to