[issue11323] os.sendfile() bo failure on solaris

Antoine Pitrou report at bugs.python.org
Sat Feb 26 15:16:44 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, so the root cause is that sendfile() under Solaris can fail with EINVAL when the offset is past the end of file (but only on 64-bit builds, strangely :-)). Here is a patch, tested under Linux, 32-bit OpenSolaris and 64-bit OpenSolaris. It also uses a more reasonable data size for the tests, since 10MB makes it annoying to trace problems.

----------
stage:  -> patch review
versions: +Python 3.2 -Python 3.3
Added file: http://bugs.python.org/file20913/test_sendfile.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11323>
_______________________________________


More information about the Python-bugs-list mailing list