Hi
 Thank you so much for your reply
Can you please let me know how can I set time out as a whole. I think you are mentioning about SSL_CTX_Set_timeout function. If it is so then I have set the time out using this function, and sadly I didn't get the expected result.

Thanks,
Raj
Rajmohan SK

----- Original Message ----- From: "David Schwartz" <dav...@webmaster.com>
To: <openssl-users@openssl.org>
Sent: Thursday, September 30, 2010 6:09 PM
Subject: Re: Set Time out for SSL read


On 9/29/2010 11:41 PM, Raj wrote:

Hi All
Is there any method to set time our for SSL _read function.
As from the Open SSL document SSL_read will not return if there is no
data to read from the socket

You really shouldn't need this. If you know for sure that it's the other side's turn to transmit, you should be timing out the connection (or even application) as a whole, not just the read. If you don't know for sure that it's the other side's turn to transmit, you should not be making a blocking call to SSL_read.

In any event, I recommend that you basically never use blocking functions.

DS

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to