<!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">Maybe we have a documentation issue here....</p>
<blockquote dir="auto">
<p>When a function is interrupted the same function has to be restored. What the documentation is sating is that you may need to restore recv even when sending is unblocked</p>
</blockquote>
<p dir="auto">I don't understand at all. If <code>gnutls_record_recv()</code> is interrupted, then the documentation says I have to call <code>gnutls_record_get_direction()</code>. (Which we cannot do in glib-networking, but let's pretend.) Then what am I supposed to do with the result of <code>gnutls_record_get_direction()</code> before calling <code>gnutls_record_recv()</code> again? If <code>gnutls_record_recv()</code> will pick up sending and handle everything transparently, then why is <code>gnutls_record_get_direction()</code> mentioned in the documentation at all?</p>
<p dir="auto">Obviously I already know that if <code>gnutls_record_recv()</code> is interrupted I have to call it again, but the documentation for <code>GNUTLS_AUTO_REAUTH</code> has me thinking that's no longer the case and special handling is required.</p>
<p dir="auto">(It would probably be good to also document that <code>GNUTLS_AUTO_REAUTH</code> must not be used if the application is sending and receiving data on two threads at once.)</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_118000589">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/e8ac76e3ea655bdbdc1486283a255815/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_118000589"}}</script>
</p>
</div>
</body>
</html>