SSL_ERROR_WANT_READ after the handshake

Viktor Dukhovni openssl-users at dukhovni.org
Sat Mar 12 23:22:21 UTC 2022


> On 12 Mar 2022, at 6:08 pm, loic nicolas <loicnicolas95 at hotmail.fr> wrote:
> 
> After the handshake, is it really necessary to check SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE? (whether on the server or client side)
> I don't want to accept a renegotiation, is it really possible that OpenSSL sends me these events without them being linked to a renegotiation?
> 
> I did several tests on more or less long connections and I never receive them but I would like to be sure.

Yes, you can encounter WANT_READ or WANT_WRITE even
after the handshake, especially when using non-blocking
sockets.

-- 
	Viktor.



More information about the openssl-users mailing list