Hi
I am using non blocking socket
I am receiving on the SSL socket a buffer of size 200 bytes.
The way I read this buffer is first I read 10 bytes using SSL_read(ssl, buf,
10), and then I want to read the rest of the buffer.
The problem I see is that using select to find out if there is data in the
socket after the first read (of 10 bytes) return with zero (no data). It
seems like on the first SSL_read openssl reads the entire data from the
socket and returns only the first 10 bytes. How can I findout before calling
SSL_read once more if I have data ready ?


Thanks
Ofer
-- 
View this message in context: 
http://old.nabble.com/use-SSL_read-in-parts-tp27611396p27611396.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to