RE: non-blocking version of SSL_peek

2008-10-10 Thread David Schwartz
> 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

RE: non-blocking version of SSL_peek

2008-10-10 Thread vne
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

RE: non-blocking version of SSL_peek

2008-10-08 Thread David Schwartz
> 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

RE: non-blocking version of SSL_peek

2008-10-08 Thread Ajeet kumar.S
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