[gnutls-devel] GnuTLS | gnutls examples don't handle short writes correctly (#1484)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Jun 18 17:50:22 CEST 2023

Nikos Mavrogiannopoulos commented: https://gitlab.com/gnutls/gnutls/-/issues/1484#note_1435170603

That's from memory, and may not apply to current code. Although `gnutls_record_send()` documentation says "the number of bytes sent might be less than @data_size", this may have never been the case. The way `gnutls_record_send()` worked ensured that writes succeed fully or fail with an error code (temporarily - eagain or fatally). That was at least at some point intentionally to prevent the complexity of handling partial writes in applications. I have not verified whether this applies to current code.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1484#note_1435170603
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/20230618/86c81627/attachment.html>

More information about the Gnutls-devel mailing list