<!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=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/MXWXZ">Caesar Wang</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1052">#1052</a>:
</p>
<div></div>
<p dir="auto">Hi I'm trying to do kTLS outside GnuTLS and use gnutls_record_get_state to get the param of TLS. However, the client can't receive any data and I found that maybe because it's receiving data when or after calling <code>gnutls_record_get_state</code>. If I add code like <code>sleep(1)</code> I can successfully receive the data. So is there any API that can lock the function call or pending that so it could be done after receiving? Or am I do anything wrong?</p>
<p dir="auto">You can try this <a href="https://paste.ubuntu.com/p/vSPSrG3nkr/" rel="nofollow noreferrer noopener" target="_blank">https://paste.ubuntu.com/p/vSPSrG3nkr/</a>
./test_certs/cert.pem <a href="https://paste.ubuntu.com/p/8W4y8mQs3x/" rel="nofollow noreferrer noopener" target="_blank">https://paste.ubuntu.com/p/8W4y8mQs3x/</a>
./test_certs/key.pem <a href="https://paste.ubuntu.com/p/RMNgqqqwJp/" rel="nofollow noreferrer noopener" target="_blank">https://paste.ubuntu.com/p/RMNgqqqwJp/</a></p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1052">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/d566090db82eaafbf07d975efd52508a/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/1052"}}</script>
</p>
</div>
</body>
</html>