[gnutls-devel] GnuTLS | gnutls_record_send_file() moves file descriptor offset while sending (#1580)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Sep 15 04:39:39 CEST 2024



Brian Denton created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1580



## Description of problem:
gnutls_record_send_file() moves file descriptor offset while sending, this impacts multi-threading applications that hold a single file descriptor open with multiple concurrent sendfile()s.

I thought about creating a patch to change read() to pread(), however win32 does not have pread() available so I don't know what the desired approach would be.

## Version of gnutls used:
3.8.0

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Gentoo Linux

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1580
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/20240915/45f0fb43/attachment-0001.html>


More information about the Gnutls-devel mailing list