On Monday April 25th 2005 Aftab Alam wrote:

> i am using openssl for nonssl communicaton using BIO and ssl communication
> using bio+ssl.
> 
> It is working fine. But i have to set connection timeouts. Can anyone help
> me how do i achieve that.
> 
> For SSL i have used SSL_set_timeout for session timeout from creation of
> session and i am not sure whether this will also be my connection timout.

No, this determines when a session is expired, but is not the connection
timeout.

> but with non ssl connection using BIO i could not find any way to set the
> timeout value.

As far as I know there isn't an OpenSSL library function for this.

You can put the BIO socket in non-blocking behaviour though, and then
wait for a connection or data using select(2). In the select call you
can then use your connection timeout.
-- 
Marco Roeland
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to