<!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></div>
<p dir="auto">This is <a href="https://bugs.debian.org/922879" rel="nofollow noreferrer noopener" target="_blank">https://bugs.debian.org/922879</a> submitted by Rémi Denis-Courmont, I am as acting as proxy for Rémi:</p>
<p dir="auto">With GnuTLS 3.6.x, VLC pseudo-randomly fails to connect to HTTP/2
servers due to what seems like a race condition in GnuTLS.
See also <a href="https://trac.videolan.org/vlc/ticket/21951" rel="nofollow noreferrer noopener" target="_blank">https://trac.videolan.org/vlc/ticket/21951</a> .</p>
<p dir="auto">To reproduce, run VLC a dozen time or so (depending on the system),
until hitting a failure:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># vlc -Irc https://streams.videolan.org/issues/21941/Greatest%20Motown%20Songs%2060s%2070s%20Hits.mp3</span>
<span id="LC2" class="line" lang="plaintext">(Ctrl+C to abort if it does not fail straight away)</span></code></pre>
<p dir="auto">The problem appears to be caused by the "fix" for Debian bug 849807 / <a href="https://gitlab.com/gnutls/gnutls/issues/158" data-original="#158" data-link="false" data-link-reference="false" data-project="179611" data-issue="3859404" data-reference-type="issue" data-container="body" data-placement="bottom" title="Deny sending before handshake is complete" class="gfm gfm-issue has-tooltip">#158</a>
which does not seem to follow the GnuTLS thread safety rules.</p>
<p dir="auto">Since breaking working applications seems far worse than protecting
broken applications from shooting themselves in the foot, I suggest
reverting 849807
(i.e. GnuTLS commit <a href="https://gitlab.com/gnutls/gnutls/commit/6a62ddfc416a4ec2118704f93c97fdd448d66566" data-original="6a62ddfc416a4ec2118704f93c97fdd448d66566" data-link="false" data-link-reference="false" data-project="179611" data-commit="6a62ddfc416a4ec2118704f93c97fdd448d66566" data-reference-type="commit" data-container="body" data-placement="bottom" title="Refuse to send data during handshake" class="gfm gfm-commit has-tooltip">6a62ddfc</a> ).</p>

</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/713">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/b17ed92615c41f167c91b7acb94220fc/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/713"}}</script>
</p>
</div>
</body>
</html>