<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "Menlo"), DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.com/acstime">acstime</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1449">#1449</a>
</p>
<div class="md" style="color: #333238; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 0 0 16px;" align="initial">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Description of problem:</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">I am not an experienced GnuTLS developer but interested and trying to help isolate confirmed behavior under MSYS2/MinGW64 port in MS Windows x64, <a href="https://github.com/msys2/MINGW-packages/issues/14739#issuecomment-1380526887" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">failure to re-handshake</a>.
Summarized test suite and dependency results posted there as well.
Everything passes except anything touching Datagram TLS (DTLS):</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">All dtls-* tests fail.
Four other test fail, upon debug:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true" style='display: block; font-size: 0.875rem; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:263</span>
<span id="LC2" class="line" lang="plaintext">server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:420</span>
<span id="LC3" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[get_last_packet]:1190</span>
<span id="LC4" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.h[handshake_remaining_time]</span>
<span id="LC5" class="line" lang="plaintext">:132</span>
<span id="LC6" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[_gnutls_handshake_io_recv_i</span>
<span id="LC7" class="line" lang="plaintext">nt]:1456</span>
<span id="LC8" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.c[_gnutls_recv_handshake]:1</span>
<span id="LC9" class="line" lang="plaintext">600</span>
<span id="LC10" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/kx.c[_gnutls_recv_server_kx_message]:</span>
<span id="LC11" class="line" lang="plaintext">590</span>
<span id="LC12" class="line" lang="plaintext">client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.c[handshake_client]:3140</span>
<span id="LC13" class="line" lang="plaintext">server|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[_gnutls_io_write_flush]:696</span>
<span id="LC14" class="line" lang="plaintext"></span>
<span id="LC15" class="line" lang="plaintext">server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:263</span>
<span id="LC16" class="line" lang="plaintext">server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:420</span>
<span id="LC17" class="line" lang="plaintext">client[-319]: The operation timed out</span>
<span id="LC18" class="line" lang="plaintext">server[-28]: Resource temporarily unavailable, try again.</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Two questions:
Would dtls "timeout" possibly also cause the re-handshake failure we have observed in gnutls-cli?</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">How can we go about fixing it? I looked at a couple of the source files for this, they mostly involve ciphers that clearly pass the test suite on their own. It appears that some assumption about the OS doesn't work in Windows ("Resource temporarily unavailable")</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">What resource? It's not much for me to go on, looks like I'm stuck..</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Running the GnuTLS test suite
Provided; see github link.</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-version-of-gnutls-used-378" class="anchor" href="#version-of-gnutls-used-378" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Version of gnutls used: 3.7.8</h2>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel-mingw64-ms-windows-x64" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel-mingw64-ms-windows-x64" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL) MinGW64 (MS Windows x64)</h2>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-how-reproducible-see-test-link" class="anchor" href="#how-reproducible-see-test-link" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>How reproducible: See test link</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Steps to Reproduce: See test link</p>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0 0 16px; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">one</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">two</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">three</li>
</ul>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Actual results:</h2>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 0;" align="initial">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Expected results:</h2>
</div>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1449">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/afc7d914be5dcabf1853480c62b9de49/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1449"}}</script>


</p>
</div>
</body>
</html>