I think it is depend upon how you configured. 
 

Thank you.

Regards,

--Ajeet  Kumar  Singh

 

Sarve Bhavantu Sukhina ,Sarve Santu NiramayaSarve Bhadrani Pashyantu , Maa
Kaschit Dukha Bhagh Bhavet 

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of vne
Sent: Wednesday, October 08, 2008 4:26 PM
To: openssl-users@openssl.org
Subject: non-blocking version of SSL_peek


Hi,
Can anyone tell me if SSL_peek is a blocking or non-blocking call ?
When I use it inside my code, then the program blocks on this fuction call
where there is no data on the socket.
The reason I want to use this call is that before closing the SSL connection
by using 'SSL_shutdown', I want to make sure that there is no pending data
present on this connection.

Is there any method to make the call SSL_peek non-blocking,i.e. it should
return if there is no data present on SSL connection like that happens with
tcp peek by using option MSG_PEEK|MSG_DONTWAIT.

Or can SSL_pending be used for this purpose? 
Please suggest...

I am using openSSL version 0.9.7b.
-- 
View this message in context:
http://www.nabble.com/non-blocking-version-of-SSL_peek-tp19876548p19876548.h
tml
Sent from the OpenSSL - User mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to