On 3/7/2011 4:19 PM, Yan, Bob wrote:
Thank you very much, David,
In general, if the application use "select/poll" system function to
> check the readable of underline BIO and invoke the SSL_read/SSL_write
> only if there are data available on the socket, can the deadlock still
> happened?
No
r.com]
Sent: Monday, March 07, 2011 3:43 PM
To: openssl-users@openssl.org
Cc: Yan, Bob
Subject: Re: SSL_ERROR_WANT_READ and SSL_ERROR_WANT-WRITE question
On 3/7/2011 2:45 PM, Yan, Bob wrote:
> My question is that if my Reader thread gets a SSL_ERROR_WANT_WRITE
> error from SSL_read fu
On 3/7/2011 2:45 PM, Yan, Bob wrote:
My question is that if my Reader thread gets a SSL_ERROR_WANT_WRITE
error from SSL_read function call, can my Writer thread do the SSL_write
operation right after the Reader’s SSL_read operation?
Yes.
> Or, if my Writer
thread gets a SSL_ERROR_WANT_READ e
Thread are two threads in my application and one thread is called Reader and
another one is Writer. The Reader thread calls the SSL_read function to receive
the incoming data from the SSL socket connection; and the Writer thread invokes
the SSL_write function to send out the data to the same SSL