[gnutls-devel] GnuTLS | kTLS gets desynchronised when sending (in gnutls_record_send) (#1470)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Mar 10 12:10:57 CET 2023




Daniel P_ Berrangé commented on a discussion: https://gitlab.com/gnutls/gnutls/-/issues/1470#note_1308870699

I concur, the lines

```
			case EINTR:
				return GNUTLS_E_INTERRUPTED;
			case EAGAIN:
				return GNUTLS_E_AGAIN;
```

both have broken semantics AFAICT.  Those two error codes must *ONLY* be returned if 'data_size == 0', otherwise the caller has no knowledge of fact that some bytes were successfully sent.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1470#note_1308870699
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/20230310/542a34ad/attachment.html>


More information about the Gnutls-devel mailing list