SSL_ERROR_WANT_READ after the handshake

loic nicolas loicnicolas95 at hotmail.fr
Sun Mar 13 00:51:51 UTC 2022


Ok thanks you
________________________________
De : openssl-users <openssl-users-bounces at openssl.org> de la part de Viktor Dukhovni <openssl-users at dukhovni.org>
Envoyé : dimanche 13 mars 2022 00:22
À : openssl-users at openssl.org <openssl-users at openssl.org>
Objet : Re: SSL_ERROR_WANT_READ after the handshake

> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220313/fcdbf3ee/attachment.htm>


More information about the openssl-users mailing list