> Actually before closing a TLS connection I need to make sure that no
> pending data is present on the that socket. So, calling SSL_peek would
> tell if this is the case or not.
No, it won't. Okay, you call SSL_peek, and there's no pending data.
Now, you're about to call SSL_shutdown. How do yo
David Schwartz wrote:
>
>
>> Hi,
>> Can anyone tell me if SSL_peek is a blocking or non-blocking call ?
>
> It can be either.
>
>> When I use it inside my code, then the program blocks on this fuction
>> call
>> where there is no data on the socket.
>
> If you're using blocking socket calls
> Hi,
> Can anyone tell me if SSL_peek is a blocking or non-blocking call ?
It can be either.
> When I use it inside my code, then the program blocks on this fuction call
> where there is no data on the socket.
If you're using blocking socket calls, that's what will happen.
> The reason I want
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