Ok thanks you ________________________________ De : openssl-users <openssl-users-boun...@openssl.org> de la part de Viktor Dukhovni <openssl-us...@dukhovni.org> Envoyé : dimanche 13 mars 2022 00:22 À : openssl-users@openssl.org <openssl-users@openssl.org> Objet : Re: SSL_ERROR_WANT_READ after the handshake
> On 12 Mar 2022, at 6:08 pm, loic nicolas <loicnicola...@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.