This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kulikjak
Recipients jstasiak, kulikjak, wiedi
Date 2020-11-04.20:34:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604522046.45.0.606118547113.issue42237@roundup.psfhosted.org>
In-reply-to
Content
I did some further digging, and this is indeed not possible on Oracle Solaris (that is, sendfile() cannot write bytes and fail during the same call). We considered this a bug and changed/fixed it several years ago.

Manual page doesn't mention that either:
https://docs.oracle.com/cd/E88353_01/html/E37843/sendfile-3c.html

I am not sure whether Illumos will want to change this as well (probably not since it is mentioned in the man page as expected behavior), but either way, the proposed change doesn't harm Oracle Solaris because 'if (offset != original_offset)' can never be true.
History
Date User Action Args
2020-11-04 20:34:06kulikjaksetrecipients: + kulikjak, jstasiak, wiedi
2020-11-04 20:34:06kulikjaksetmessageid: <1604522046.45.0.606118547113.issue42237@roundup.psfhosted.org>
2020-11-04 20:34:06kulikjaklinkissue42237 messages
2020-11-04 20:34:06kulikjakcreate