[openssl-users] SSL_ERROR_WANT_READ, SSL_ERROR_WANT_WRITE
rasjv at yandex.com
Mon Mar 9 12:21:19 UTC 2015
I have to open discussion again.
I want to test situations when SSL_read WANT_WRITE and SSL_write WANT_READ. But I can't do this. SSL_read never wants write and SSL_write never wants read!
I don't know how to catch these situations. I don't know how to rehandshake. I tried after connect and handshake to send data simultaneously both to server and to client and never got one of those situations, SSL_read only wanted to read and SSL_write only wanted to write, all data was received by both client and server.
I don't even understand how SSL_write can want to read? In what cases?
I can understand when SSL_read wants to write, for example when client got HelloRequest or server got a new ClientHello while reading data. But I can't test it, because I don't know how to start handshake again, how to perform a rehandshake(renegotiation).
Can anybody help me? How to test these situations or how to perform a rehandshake?
More information about the openssl-users