> This question have been discussed since I saw a long thread of it.
>
> Come down to the details, I am having trouble using select() a
> read/write file descriptor to make BIO_do_connect a non-blocking call,
> before BIO_do_connect() returns, BIO_get_fd() will return -1. Without a
> file descriptor, how can I use select()?

Why would you want to use 'select' at that point?

> wondering if somebody can provide some advice and post some code
> examples.
>
> Really appreciate it!
>
> -Yolanda

Perhaps you missed the bit about only calling 'select' when OpenSSL tells
you to. OpenSSL will never tell you to call 'select' without their being a
descriptor to 'select' on.

You *must* try the operation first. Only if the failure reason suggests that
you need to 'select' should you do so. Otherwise, you will cause deadlocks.

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to