<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div>
<p dir="auto">From your documentation of GNUTLS_AUTO_REAUTH:</p>
<p dir="auto">"""This must be enabled with GNUTLS_POST_HANDSHAKE_AUTH for TLS1.3, and it requires to restore interrupted calls to gnutls_record_recv() based on the output of gnutls_record_get_direction() , i.e., gnutls_record_recv() could also be interrupted when sending when this flag is enabled."""</p>
<p dir="auto">So if <code>gnutls_record_recv()</code> is interrupted and <code>gnutls_record_get_direction()</code> returns 1 (trying to write data) I have to next call <code>gnutls_record_send()</code> instead of restoring the call to <code>gnutls_record_recv()</code>? Not sure that's easier. (Also we can't use <code>gnutls_record_get_direction()</code> because we do unfortunately support reading and writing simultaneously on separate threads.)</p>
<p dir="auto">Seems much easier to handle reauth manually.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/615#note_117997619">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/5ad5d409da26693611fd64ec13fafbf2/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/615#note_117997619"}}</script>
</p>
</div>
</body>
</html>