<!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 style="color: #777777;">
<a href="https://gitlab.com/TheRealMichaelCatanzaro">Michael Catanzaro</a>
commented:
</p>
<div style="">
<blockquote dir="auto">
<p>As many applications set <code>gnutls_transport_set_pull_timeout_function</code> anyway, an issue like that may not have been noticed. Could that be the case here? (does glib-networking set the pull timeout?)</p>
</blockquote>
<p dir="auto">Hm, this is really weird, because we do set the pull timeout func, always, since glib-networking 2.56. We do it right after setting the normal pull func, in g_tls_connection_gnutls_initable_init(). The only way they could ever not be set is if initialization fails, in which case g_tls_connection_new() will actually return NULL instead of a GTlsConnection, so there's no way applications could try to use it. And there's no way one but not the other could ever be set, because they're always set immediately after the other. The code looks like this:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">  gnutls_transport_set_push_function (priv->session,</span>
<span id="LC2" class="line" lang="plaintext">                                      g_tls_connection_gnutls_push_func);</span>
<span id="LC3" class="line" lang="plaintext">  gnutls_transport_set_pull_function (priv->session,</span>
<span id="LC4" class="line" lang="plaintext">                                      g_tls_connection_gnutls_pull_func);</span>
<span id="LC5" class="line" lang="plaintext">  gnutls_transport_set_pull_timeout_function (priv->session,</span>
<span id="LC6" class="line" lang="plaintext">                                              g_tls_connection_gnutls_pull_timeout_func);</span></code></pre>
<p dir="auto">So something strange must be going wrong for GnuTLS to think we haven't set that func.</p>
<p dir="auto"><a href="https://gitlab.com/gtrentalancia" data-user="4526409" data-reference-type="user" data-container="body" data-placement="bottom" class="gfm gfm-project_member" title="Guido Trentalancia">@gtrentalancia</a> is it possible you're using glib-networking older than 2.56? That would be really weird if you have GnuTLS 3.6, but that's my only guess here. GnuTLS 3.6 is not compatible with older versions of glib-networking.</p>
</div>


</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/823#note_222212337">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/ef3a5133958aa73d57ad15c84b642a5d/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/823#note_222212337"}}</script>


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