<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ok thanks you</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> openssl-users <openssl-users-bounces@openssl.org> de la part de Viktor Dukhovni <openssl-users@dukhovni.org><br>
<b>Envoyé :</b> dimanche 13 mars 2022 00:22<br>
<b>À :</b> openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Objet :</b> Re: SSL_ERROR_WANT_READ after the handshake</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">> On 12 Mar 2022, at 6:08 pm, loic nicolas <loicnicolas95@hotmail.fr> wrote:<br>
> <br>
> 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)<br>
> 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?<br>
> <br>
> I did several tests on more or less long connections and I never receive them but I would like to be sure.<br>
<br>
Yes, you can encounter WANT_READ or WANT_WRITE even<br>
after the handshake, especially when using non-blocking<br>
sockets.<br>
<br>
-- <br>
        Viktor.<br>
<br>
</div>
</span></font></div>
</body>
</html>