Re: Can SSL_accept() return SSL_ERROR_WANT_READ/WRITE for blocking sockets?

2005-11-22 Thread Perry L. Jones
try this to find the error: i=SSL_accept(con); switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE: break; case SSL_ERROR_WANT_WRITE:

RE: Can SSL_accept() return SSL_ERROR_WANT_READ/WRITE for blocking sockets?

2005-11-22 Thread Edward Chan
: Re: Can SSL_accept() return SSL_ERROR_WANT_READ/WRITE for blocking sockets? try this to find the error: i=SSL_accept(con); switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE

Can SSL_accept() return SSL_ERROR_WANT_READ/WRITE for blocking sockets?

2005-11-21 Thread Edward Chan
Title: Can SSL_accept() return SSL_ERROR_WANT_READ/WRITE for blocking sockets? SSL_accept() is returning = 0. And when I trace out the err msg using the following code int iRet = SSL_accept(m_pSSL); if (iRet = 0) {// handshake failed char buf[256]; ERR_error_string_n