[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos
Jakub Kulik
report at bugs.python.org
Wed Nov 4 15:34:06 EST 2020
Jakub Kulik <kulikjak at gmail.com> added the comment:
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.
----------
nosy: +kulikjak
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42237>
_______________________________________
More information about the Python-bugs-list
mailing list