Hi All,

 

I am trying to create a non blocking ssl connection.

 

I created a BIO and converted it to non blocking with ioctlsocket on windows and fcntl on linux

 

if i try http connection on this BIO it works fine and times out at specified time on addresses where it is unable to connect

 as non blocking socket should using 'select' but if i convert it into ssl socket, SSL_connect never returns on addresses where it is unable to connect although

it works fine with the valid addresses.

although the underlying bio is non blocking but SSL_connect still seems to use blocking socket.

After converting to nonblocking socket i call SSL_connect this way. pls help me where i am worng

 

this->m_pSSLSocket = SSL_new(this->m_pSSLContext);

SSL_set_bio(this->m_pSSLSocket,Socket,Socket);

           

int ErrCode = SSL_connect(this->m_pSSLSocket);BIO *socket = BIO_new_connect(host:port);

 

 

Regards,

 

Reply via email to