> Im having a problem with SSL_read. When SSL_read fails and returns > SSL_ERROR_WANT_READ I do select checking for readability but I > never get a > hit and if I try SSL_read again I get the same error. Does anyone > know what > to do?
That sounds like there is just nothing to read. > Im using different threads for receiving and sending. Isnt that > the thing > do, to check for readability with select when I get > SSL_ERROR_WANT_READ and > then when hit try SSL_read again? Yes, that is correct. Make sure that you protect the SSL session with a mutex. You are not allowed to call SSL_read and SSL_write at the same time on the same session from different threads. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]