[gnutls-devel] GnuTLS | guile: Writes to record ports handle EAGAIN/EINTR transparently. (!1417)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Apr 25 06:23:37 CEST 2021




Daiki Ueno started a new discussion on guile/src/core.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1417#note_559709887

>        c_result = gnutls_record_send (c_session, (char *) data + c_sent,
>                                       size - c_sent);
>        if (EXPECT_FALSE (c_result < 0))
> -        scm_gnutls_error (c_result, FUNC_NAME);
> +	{
> +	  if (c_result != GNUTLS_E_AGAIN && c_result != GNUTLS_E_INTERRUPTED)

Perhaps `!gnutls_error_is_fatal(c_result)` might be a bit more generic?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1417#note_559709887
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20210425/3b2871bd/attachment-0001.html>


More information about the Gnutls-devel mailing list