On a similar tack, how do I connect to a server when my socket is
non-blocking.

I've got a non-blocking Winsock socket and when I call SSL_connect to start
negotiation with the server, it returns an error with SSL_ERROR_WANT_READ
set.

-- Jeff.

-----
Jeff Magnusson ([EMAIL PROTECTED])
River Styx Internet


>
> Actually you can make SSL_accept non block by using non blocking sockets
and using  \
> SSL_do_handshake. First You need to set state in SSL structure as accept
state with \
> SSL_set_accept_state
>
> sarma
>
>
> [EMAIL PROTECTED] wrote:
>
> SSL_accept will block the programm to wait the client to do SSL_connect.
Since \
> SSL_accept and SSL_connect will do many recv and send on the socket, it is
\
> impossible to use select to add a timeout. Is there any other method to
add a \
> timeout?
> zhang

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

Reply via email to