<!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="">
<p dir="auto">I tried actually using this, hoping it would solve <a href="https://gitlab.gnome.org/GNOME/glib-networking/issues/15" rel="nofollow noreferrer noopener" target="_blank">https://gitlab.gnome.org/GNOME/glib-networking/issues/15</a> for me, but it didn't work as expected. Problem is that some data queued from the previous gnutls_record_send() could have actually been sent already and is no longer in the send queue. So using gnutls_record_discard_queued() does not "negate" an interrupted/cancelled gnutls_record_send().</p>
<p dir="auto">i.e. I think gnutls_record_send() actually sends data even when it returns a negative error code. As long as applications follow the old rule to always resend the same data, it was fine. But any application using gnutls_record_discard_queued() surely needs to know how much was actually sent.</p>
<p dir="auto">I'm not sure what you would consider the intended API behavior to be. Do you think this is worth a new issue report?</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/806#note_221366456">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/8135fcb3c6be805d21ae80e294b8270f/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/806#note_221366456"}}</script>
</p>
</div>
</body>
</html>